Welcome to mirror list, hosted at ThFree Co, Russian Federation.

image_engine_depth_vert.glsl « shaders « image « engines « draw « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3181a85ff55e94d47f03ec0c5c7ea49dce93ce9f (plain)
1
2
3
4
5
6
7
8
9
10
11
#pragma BLENDER_REQUIRE(common_view_lib.glsl)

void main()
{
  vec3 image_pos = vec3(pos, 0.0);
  uv_image = uv;

  vec3 world_pos = point_object_to_world(image_pos);
  vec4 position = point_world_to_ndc(world_pos);
  gl_Position = position;
}