mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
parent
bef383985e
commit
769341e180
4 changed files with 0 additions and 9 deletions
|
|
@ -165,10 +165,8 @@ uniform int spot_light_count;
|
|||
out vec4 diffuse_light_interp;
|
||||
out vec4 specular_light_interp;
|
||||
|
||||
|
||||
void light_compute(vec3 N, vec3 L, vec3 V, vec3 light_color, float roughness, inout vec3 diffuse, inout vec3 specular) {
|
||||
|
||||
|
||||
float NdotL = dot(N, L);
|
||||
float cNdotL = max(NdotL, 0.0); // clamped NdotL
|
||||
float NdotV = dot(N, V);
|
||||
|
|
@ -225,8 +223,6 @@ void light_compute(vec3 N, vec3 L, vec3 V, vec3 light_color, float roughness, in
|
|||
|
||||
specular += specular_brdf_NL * light_color * (1.0 / M_PI);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
void light_process_omni(int idx, vec3 vertex, vec3 eye_vec, vec3 normal, float roughness, inout vec3 diffuse, inout vec3 specular) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue