mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fixes to light shaders, should work now..
This commit is contained in:
parent
da144fed4c
commit
4f39ce32b9
4 changed files with 31 additions and 2 deletions
|
|
@ -894,6 +894,10 @@ void light_compute(vec3 N, vec3 L,vec3 V,vec3 B, vec3 T,vec3 light_color,vec3 at
|
|||
#if defined(USE_LIGHT_SHADER_CODE)
|
||||
//light is written by the light shader
|
||||
|
||||
vec3 normal = N;
|
||||
vec3 albedo = diffuse_color;
|
||||
vec3 light = L;
|
||||
vec3 view = V;
|
||||
|
||||
LIGHT_SHADER_CODE
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue