Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-01-25Cleanup: remove duplicated shaders that only added clipping checksCampbell Barton
Originally I wanted to avoid adding draw manager specific ifdef's all over generic shaders however this isn't needed in so many places. Also there are shaders that are only used by the draw manager so duplicating them only to have the original unused doesn't make sense.
2017-05-17Cleanup: remove GLSL version checksCampbell Barton
2017-04-16OpenGL: fix GPU_SHADER_SIMPLE_LIGHTING_SMOOTH_COLORMike Erwin
The fragment shader expects a normal, but the vertex shader was not providing one. Fix: added a new vertex shader that has normals + smooth color interpolation. I also split gpu_shader_3D_vert in two: - one with just position - one with position + normal For each of the builtin shaders, we should be able to look at the GLSL and tell exactly what it's doing. Using #defines and #ifdefs for rendering options makes the shaders hard to read and easy to break.
2017-02-11OpenGL immediate mode: interface_draw.c (cont)Clément Foucault
ui_draw_but_COLORBAND Introduced a new checker shader to be used mostly on transparent areas. OpenGL immediate mode: interface_draw.c (cont) ui_draw_but_UNITVEC Introduced a new shader to be used for simple lighting.
2016-10-15OpenGL: new built-in point shader, clean up other shader namesMike Erwin
Smooth round point with outline (uniform color) and fill (varying color). Updated shader naming scheme: a shader that doesn't deal with color does not have to say "no color". Vertex shaders do not have to say "uniform color" since their frag counterpart actually has the uniform. Each name should describe what that shader *does*, not what it *doesn't do*.