//: param auto TEXTURE_TAG
uniform sampler2D uniform_tex; // The texture itself
//: param auto TEXTURE_TAG_is_set
uniform bool uniform_tex_is_set; // A boolean indicating whether the texture is in document or not
//: param auto TEXTURE_TAG_size
uniform vec4 uniform_tex_size; // The size of the texture (width, height, 1/width, 1/height)
Where TEXTURE_TAG
is one of the described tags below.
All these textures are premultiplied and dilated to avoid seams problems.
Default
channel_anisotropyangle
channel_anisotropylevel
channel_basecolor
channel_displacement
channel_emissive
channel_glossiness
channel_height
channel_ior
channel_metallic
channel_opacity
channel_reflection
channel_roughness
channel_specular
channel_transmissive
User
channel_user0
channel_user1
channel_user2
channel_user3
channel_user4
channel_user5
channel_user6
channel_user7
texture_ao
: AO map
texture_curvature
: Curvature map
texture_environment
: Environment map, mip-mapped, use lib-env.glsl
to use this one
texture_id
: ID map
texture_normal
: Tangent space normal map
texture_normal_ws
: World space normal map
texture_position
: World space position map
texture_thickness
: Thickness map
world_eye_position
: a vec3
representing the world eye position
//: param auto world_eye_position
uniform vec3 uniform_world_eye_position;
mvp_matrix
: a mat4
representing the model view projection matrix
//: param auto mvp_matrix
uniform mat4 uniform_mvp_matrix;
environment_max_lod
: a float
representing the envmap's depth of mip-map pyramid
//: param auto environment_max_lod
uniform float uniform_max_lod;
is_2d_view
: a bool
indicating whether the rendering is performed for 2D view or not
//: param auto is_2d_view
uniform bool uniform_2d_view;