mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Baker fixes
This commit is contained in:
parent
5676632a3b
commit
e0871b0f52
6 changed files with 29 additions and 21 deletions
|
|
@ -1340,7 +1340,7 @@ void reflection_process(int idx, vec3 vertex, vec3 normal, vec3 binormal, vec3 t
|
|||
|
||||
reflection_accum += reflection;
|
||||
}
|
||||
#ifndef USE_LIGHTMAP
|
||||
#if !defined(USE_LIGHTMAP) && !defined(USE_LIGHTMAP_CAPTURE)
|
||||
if (reflections[idx].ambient.a > 0.0) { //compute ambient using skybox
|
||||
|
||||
vec3 local_amb_vec = (reflections[idx].local_matrix * vec4(normal, 0.0)).xyz;
|
||||
|
|
@ -1957,7 +1957,7 @@ FRAGMENT_SHADER_CODE
|
|||
} else {
|
||||
specular_light += env_reflection_light;
|
||||
}
|
||||
#ifndef USE_LIGHTMAP
|
||||
#if !defined(USE_LIGHTMAP) && !defined(USE_LIGHTMAP_CAPTURE)
|
||||
if (ambient_accum.a > 0.0) {
|
||||
ambient_light = ambient_accum.rgb / ambient_accum.a;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue