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

world_vert.glsl « shaders « eevee « engines « draw « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 837dca4ad080a38d52359bca622f78df0a5bb5d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

#pragma BLENDER_REQUIRE(common_view_lib.glsl)
#pragma BLENDER_REQUIRE(common_math_lib.glsl)
#pragma BLENDER_REQUIRE(common_utiltex_lib.glsl)

#pragma BLENDER_REQUIRE(closure_eval_surface_lib.glsl)

in vec2 pos;

RESOURCE_ID_VARYING

void main()
{
  GPU_INTEL_VERTEX_SHADER_WORKAROUND

  PASS_RESOURCE_ID

  gl_Position = vec4(pos, 1.0, 1.0);
  viewPosition = project_point(ProjectionMatrixInverse, vec3(pos, 0.0));
  worldPosition = transform_point(ViewMatrixInverse, viewPosition);
  /* Not usable. */
  viewNormal = vec3(0.0);
  worldNormal = vec3(0.0);
}