Files
gazebo_models/oak_tree/materials/scripts/caster_vp.glsl
Quella777 32cc2a8e96 init
2025-08-25 16:30:02 +08:00

17 lines
290 B
GLSL

uniform mat4 world_view_proj_mat;
uniform vec4 texel_offsets;
varying vec4 vertex_depth;
varying vec2 uv;
void main()
{
vertex_depth = world_view_proj_mat * gl_Vertex;
gl_Position = vertex_depth;
gl_Position.xy += texel_offsets.zw * gl_Position.w;
uv = gl_MultiTexCoord0.xy;
}