Blender Git Loki

Git Commits -> Revision dfe2743

Revision dfe2743 by Sergey Sharybin (opensubdiv-modifier)
July 16, 2014, 15:04 (GMT)
OpenSubdiv: Update GLSL code to use geometry shader

This bumps GLSL requirement for the GPU, but this is the only way
we can support fare-vertex attributes. Shader currently supports
solid draw only but it've got lighting model hooked up.

This gives quite noticeable slowdown on my gt620, but this card
is not really something powerful and likely code could be improved
later.

This also allowed to have proper normals for flat shading.

For now the code stays disabled for until some runtime check or
so is implemented.

TODO: There are some matrix functions which are currently simply
copy-pasted from the blenlib, would be nice to clean this up.

Commit Details:

Full Hash: dfe2743ca07c924ab09c98cc9941a972f5344264
Parent Commit: ac1c1eb
Lines Changed: +350, -46

2 Modified Paths:

/intern/opensubdiv/gpu_shader_opensubd_display.glsl (+124, -34) (Diff)
/intern/opensubdiv/opensubdiv_gpu_capi.cc (+226, -12) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021