Blender Git Loki

Git Commits -> Revision d882f05

Revision d882f05 by Antonis Ryakiotakis (master)
February 1, 2012, 17:47 (GMT)
Fix: Bicubic bump mapping does not work for UVs outside the 0,1 range.

This issue is caused by texelFetch which does not take wrapping options into account as it uses unnormalized uv coordinates to access a texel. A hack was made to do manual wrapping in the shader. This is acceptable because texture wrap mode is always treated as "repeat" elsewhere in 3D view in blender.

Thanks to Morten Mikkelsen for pointing out the cause of the issue and providing the fix.

Commit Details:

Full Hash: d882f05b824f4111ef5c319c89a2f85b1773c579
SVN Revision: 43824
Parent Commit: fb62923
Lines Changed: +930, -894

2 Modified Paths:

/source/blender/gpu/intern/gpu_shader_material.glsl (+13, -2) (Diff)
/source/blender/gpu/intern/gpu_shader_material.glsl.c (+917, -892) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021