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

surface_lib.glsl « shaders « eevee « engines « draw « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 638ddf0dc4ca51d6d2f32a17ce18cb44149a0e8f (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
/** This describe the entire interface of the shader.  */

/* Samplers */
uniform sampler2D colorBuffer;
uniform sampler2D depthBuffer;

/* Uniforms */
uniform float refractionDepth;

IN_OUT ShaderStageInterface
{
  vec3 worldPosition;
  vec3 viewPosition;
  vec3 worldNormal;
  vec3 viewNormal;

#ifdef HAIR_SHADER
  vec3 hairTangent; /* world space */
  float hairThickTime;
  float hairThickness;
  float hairTime;
  flat int hairStrandID;
#endif
};