Fix T52528: generated texture mismatch between Cycles and Eevee

Finally orco should be working 100% on Eevee now. Thanks for Sergey
Sharybin for reporting this.
This commit is contained in:
Dalai Felinto 2017-08-25 14:19:27 +02:00
parent 99b1f9f4f4
commit 0feeef89f0
Notes: blender-bot 2023-02-14 06:39:21 +01:00
Referenced by issue #52528, Eevee nodes (e.g., Checker Texture) has different coordinates than Cycles when no UV
1 changed files with 1 additions and 1 deletions

View File

@ -3148,7 +3148,7 @@ void node_tex_coord(
out vec3 generated, out vec3 normal, out vec3 uv, out vec3 object,
out vec3 camera, out vec3 window, out vec3 reflection)
{
generated = attr_orco * 0.5 + 0.5;
generated = attr_orco;
normal = normalize((obinvmat * (viewinvmat * vec4(N, 0.0))).xyz);
uv = attr_uv;
object = (obinvmat * (viewinvmat * vec4(I, 1.0))).xyz;