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

gpu_shader_material_attribute.glsl « material « shaders « gpu « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: faf37db3ea68ded249e1b015ab75104fb9f9c81a (plain)
1
2
3
4
5
6
7
8
void node_attribute(
    vec4 attr, out vec4 outcol, out vec3 outvec, out float outf, out float outalpha)
{
  outcol = vec4(attr.xyz, 1.0);
  outvec = attr.xyz;
  outf = avg(attr.xyz);
  outalpha = attr.w;
}