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

workbench_shadow_vert.glsl « shaders « workbench « engines « draw « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a220434ec4531a8405eee7ae49ec8b903aa94aa4 (plain)
1
2
3
4
5
6
7
8
9

#pragma BLENDER_REQUIRE(common_view_lib.glsl)

void main()
{
  vData.pos = pos;
  vData.frontPosition = point_object_to_ndc(pos);
  vData.backPosition = point_object_to_ndc(pos + lightDirection * lightDistance);
}