Files
test2/source/blender/gpu/shaders/material/gpu_shader_material_attribute.glsl

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
208 B
Plaintext
Raw Normal View History

2020-11-04 02:14:48 -05:00
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;
}