GLSL help #375
Unanswered
jackofchaos
asked this question in
Q&A
GLSL help
#375
Replies: 1 comment
-
|
This should do it: /* META
@position: subtype=Vector; default=POSITION;
@normal: subtype=Normal; default=NORMAL;
*/
LitSurface get_lit_surface(vec3 position, vec3 normal, int light_index)
{
return lit_surface(position, normal, LIGHTS.lights[light_index], true);
}Keep in mind this is going to get the lighting information from a single light. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to make a library file that exposes the attributes of the lit surface function in Lighting\Lighting.glsl so I can use it in the node graph to make more expanded shaders. The default tools are good, but without raw access to NoL and others I can't make the kind of shaders I want. I've been trying to do it alone, but I am not familiar with GLSL
Beta Was this translation helpful? Give feedback.
All reactions