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
2017-03-05Clay Engine: Fix shader linking issueClément Foucault
2017-03-05Clay Engine: More Lamp drawing workClément Foucault
2017-03-05Clay Engine: camera drawingClément Foucault
2017-03-03Gawain: fix for MSVC 2013Mike Erwin
<stddef.h> defines offsetof. For some reason MSVC 2015 does not need this. Mystery!
2017-03-03Merge branch 'master' into blender2.8Julian Eisel
Conflicts: source/blender/editors/armature/pose_select.c source/blender/editors/include/ED_armature.h
2017-03-03Cleanup: GPU_select never took NULL rectCampbell Barton
2017-03-03Cleanup: redundant header, use const, short -> boolCampbell Barton
2017-03-03plug ShaderInterface into GPUShaderMike Erwin
Renamed existing getter/setter that only FX shaders use. We could convert FX code to use the richer new interface or leave it as is. Removed unused GPUShader fields. ShaderInterface tracks the same information.
2017-03-03OpenGL: draw PBVH bounding box with new imm modeMike Erwin
It wasn't using old immediate mode, but was using - client vertex arrays (obsolete) - quads (obsolete) - state attrib stack (obsolete) - polygon mode (still allowed, but gross)
2017-03-03Gawain: add ShaderInterface for GLSL introspectionMike Erwin
After a GLSL program is linked we can get all its inputs & never have to ask it again. Several uniforms are considered "built-in". Nothing special about these to OpenGL itself, they just follow conventions of our built-in shaders. This will help the matrix API, immediate & batch drawing APIs, and allow extra error/compatibility checking.
2017-03-02Gawain: move PRIM types to new file, classify by geometryMike Erwin
PrimitiveClass will help match shaders to draw calls & detect usage errors. For example a point sprite shader only makes sense with PRIM_POINTS. Updated other files to include new primitive.h
2017-03-02Remove all instances of OBACT from drawobject.c and related changesDalai Felinto
2017-03-02Gawain: allow use of final 2 bits of 10_10_10_2 formatMike Erwin
Requested by @fclem
2017-03-02Edit Mode overlay: Moved Shaders to draw modules and resolved some draw issue.Clément Foucault
We don't want to clutter gpu_shader.c with engine specific code Added face's center dot Simplified loose vert shader
2017-03-02Edit Mode overlay: Added theme color via UBO.Clément Foucault
2017-03-02Edit Mode overlay: fast navigateClément Foucault
2017-03-02Edit Mode overlays: separate multiple shaders for loose edges and vertsClément Foucault
2017-03-01Cleanup: warningsCampbell Barton
2017-02-28Edit Mesh overlays: fix half cut vertices.Clément Foucault
Artifacts still remained when 2 vertices were linedup in orthographic mode or with very acute vertex angles. This commit fix that by adding even more geometry.
2017-02-28Edit Mesh overlays: added looses edges and verts as triangle.Clément Foucault
We loose a bit of memory for (more?) performance.
2017-02-28skip OpenGL debug logic on AppleMike Erwin
ifdef out most debugging code since Apple does not implement any debug extensions. We can revisit this if they ever do (don't expect that). Changed output message so Mac users don't think --debug-gpu is broken.
2017-02-28OpenGL: enable use of AMD_debug_outputMike Erwin
This extension is the best we have on some older supported GPU + OS combinations. All the code was in place, just disabled.
2017-02-28OpenGL: remove GPU_state_print functionMike Erwin
I was removing deprecated/obsolete state from this function. About halfway through I started questioning the need for the whole thing. GPU_state_print is not called anywhere, but is (was) available as a development aid. External GL debugging tools are really good these days! We should use those to examine state & not roll our own.
2017-02-28rename built-in point shaders, SMOOTH --> AAMike Erwin
Updated shader names and code that uses them. All of these shaders produce round points that are anti-aliased and blended against the background. These were initially named SMOOTH because they replace glEnable(GL_POINT_SMOOTH). But SMOOTH in shader-land refers to vertex attribute interpolation (like glShadeModel(GL_SMOOTH)). Using SMOOTH to mean two things is confusing, so we now use AA to mean "the point is anti-aliased".
2017-02-28OpenGL: keyframe shape fixesMike Erwin
- Size parameter is total size of the shape, not its radius (half size). Updated hard-coded sizes to match this. - Shader expands size to include outline. - Fixed fringe between outline color and transparent background.
2017-02-27Clay Engine: Edit Mesh overlay fix jaggy edges.Clément Foucault
We do a strip of triangles around the triangle of interest and modify the variying vars to "trick" the fragment shader into rendering what we need. This keeps the compatibility for both shaders. Vertex still get half displayed when angle at the vertex is very acute. This patch is only for the simple, no vert clipped case. This is 2.5x slower than without the trick (on my hardware with 1million tris).
2017-02-26Clay Engine: fix shader :/Clément Foucault
2017-02-26Clay Engine: Edit mesh overlaysClément Foucault
Based on the previous overlay shader from merwin. This shader takes care of clipped vertex cases and do all edit mode face info in one pass (except face centers). As the shading is done one the triangle itself the visual can't go beyond the surface of the mesh. That leads to half displayed edges on the outline of the mesh. This problem can be fixed by a second pass. This is work in progress.
2017-02-26OpenGL: replace gluProject and gluUnProject, and simplify surrounding code.Brecht Van Lommel
Part of T49042.
2017-02-26Fix compiler warnings on macOS / clang / c++11.Brecht Van Lommel
2017-02-24OpenGL: wm_gesture uses new imm modeianwill
D2376 by @ianwill, part of T49043 review by @merwin Box select, circle select, etc. Introducing the dashed-line shader! See D2376 for more info.
2017-02-24OpenColorIO: Update glsl implementation to be ready for ogl 3.3 coreClément Foucault
2017-02-24OpenGL immediate mode: new shader image shuffle colorClément Foucault
new shader to draw an image with one isolated channel
2017-02-24OpenGL immediate mode: gpu_framebuffer.cClément Foucault
I had to make some changes to the sep_gaussian_blur shader to be compliant for gl 3.3 leap
2017-02-23Fix building full.Bastien Montagne
2017-02-23Silence "defined but not used" warningsDalai Felinto
2017-02-22Clay Engine: Renaming shader.Clément Foucault
2017-02-22Clay Engine: Prepare for Armature drawing.Clément Foucault
- Added runtime display matrices to EditBone and bPoseChannel - Added Object space instance vertex shader and modified the simple lighting shader accordingly
2017-02-19Clay Engine: Use G.debug_value to test cache performanceClément Foucault
Use debug 666 for cache without instance buffer caching. Use debug 667 for cache with instance buffer caching.
2017-02-19OpenGL: fix MVP matrix orderMike Erwin
Numbers were correct but names were mixed up.
2017-02-17Clay Engine: Separate mode drawing to different files/engines.Clément Foucault
2017-02-17Add diagonal stripe shader (GPU_SHADER_2D_DIAG_STRIPES)Luca Rood
Reviewed By: merwin Differential Revision: https://developer.blender.org/D2512
2017-02-16Clay Engine: Fix Axis Name shaderClément Foucault
2017-02-15Clay Engine: Replace Manual depth test by depth copy.Clément Foucault
This avoid glitches due to float comparison precision.
2017-02-15Bring rendering back (update all references to SETLOPPER)Dalai Felinto
2017-02-15Clay Engine: drawaxis names drawn with shaders & instanceClément Foucault
2017-02-15Clay Engine: Added immUniform functions...Clément Foucault
for vec3 arrays and matrix4.
2017-02-14OpenGL immediate mode: drawarmature.c (cont)Clément Foucault
All (except for stick and wire) are now rendered using batch or immediate API. Using simple front facing lighting for now, waiting for gpu_basic_shader.c to be recoded.
2017-02-14OpenGL immediate mode: fix inverted normal in sphere batchClément Foucault
2017-02-14OpenGL immediate mode: added gpuRotate3f to GPU_matrixClément Foucault