Blender Git Loki

Git Commits -> Revision bf0f3a0

Revision bf0f3a0 by Sergey Sharybin (master)
September 2, 2014, 09:41 (GMT)
Fix second part of T41068 -- reflection mapping was wrong

Few things:
- reflect() takes arguments in this order: N, I, it was swapped
in the previous code for some reason.

- Normal and view vectors are to be normalized. For the view
vector we're now using shade_view() in order to deal with the
ortho camera. However, Cycles does not support ortho camera
for reflection, but this is easy to do in a separate commit.

- Reflection vector is to be in the world space. Kudos to
Antony Riakiotakis for figuring this out!

Commit Details:

Full Hash: bf0f3a04ccb927ec01a9059e56b0ac4fb80870a0
Parent Commit: 8230ea4
Lines Changed: +4, -1

1 Modified Path:

/source/blender/gpu/shaders/gpu_shader_material.glsl (+4, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021