Blender Git Loki

Git Commits -> Revision 1d09197

Revision 1d09197 by Sergey Sharybin (opensubdiv-modifier)
July 3, 2014, 10:32 (GMT)
Implement smooth shading for OpenSubdiv

This is rather an experiment commit which places all
the needed bits for the smooth shading in viewport.

Approach is similar to the simpleCpu example application,
which computes lo-res normal on CPU and passes them
to OpenSubdiv. Then the shader then have access to
vertex normals and passes them to the fragment shader.

At this point all the shading is smooth currently,
flat shading will be landed when all the material from
Blender are taken into account.

Commit Details:

Full Hash: 1d09197f52f3a8adc7d213a7c66aa45de1b9db29
Parent Commit: cad3a7d
Lines Changed: +84, -20

4 Modified Paths:

/intern/opensubdiv/gpu_shader_opensubd_display.glsl (+15, -9) (Diff)
/intern/opensubdiv/opensubdiv_capi.cc (+1, -1) (Diff)
/intern/opensubdiv/opensubdiv_gpu_capi.cc (+1, -0) (Diff)
/source/blender/blenkernel/intern/CCGSubSurf.c (+67, -10) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021