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-05-19Remove reference to WITH_GL_PROFILE_COREDalai Felinto
There is no more point of keep those around. ES20 may need special case when/if we dabble with it again. Meanwhile no point on polluting the code with this. (ghost still has reference for the PROFILE, but that's reasonable)
2017-04-27OpenGL: early exit from functions that don't mix with core profile Mike Erwin
These parts will not be part of final viewport, but are called indirectly during the transition. To avoid runtime errors on core profile, exit early -- functions effectively do nothing. I put the early exits inside the functions to avoid cluttering the code that calls these. But (long term) the calling functions need to change. Basic shader's detect_options function was unused and full of old, so I deleted it. Part of T51164
2017-04-12Merge branch 'master' into 28Campbell Barton
2017-04-12Cleanup: use lowercase gpu prefix for static funcsCampbell Barton
This was mostly followed already.
2017-04-08OpenGL: drop support for EXT_geometry_shader4Mike Erwin
See gpu_shader.c for the main changes. EXT_geometry_shader4 brought this feature to GL versions < 3.2, but now it's just cluttering up our code. Soon all platforms will be on version 3.3 so we won't even have to check support at runtime!
2017-03-15OpenGL: remove non-GLSL option from basic shaderMike Erwin
This code path was only used when Blender was launched with --enable-legacy-basic-shader at the command line. Part of general OpenGL upgrade (T49165)
2017-01-09Fix T49861: Interlace stereo drawingDalai Felinto
This does not address stapling shader in 2.8, though the solution can be similar (own shader, not polutting interlace shader). part of T49043 Reviewers: merwin Differential Revision: https://developer.blender.org/D2440
2016-09-21GPU_basic_shader uses GLSL by defaultMike Erwin
switch back to old mode at runtime: blender --enable-legacy-basic-shader
2016-09-17OpenGL: simplify basic_shader_bindMike Erwin
No need to enable/disable texturing with GLSL, just use textures in the fragment shader.
2016-06-10Fix GPU logical error changing stippleCampbell Barton
2016-06-09GPU: only call glShadeModel when neededCampbell Barton
2016-06-09GPU: avoid multiple bind calls in GPU_draw_pbvh_buffersCampbell Barton
Also add utility functions: GPU_basic_shader_bind_enable/disable so we don't have to get the previous state every time and manipulate it
2016-06-09Flat shading for basic shaderAlexander Romanov
The purpose of the patch is to replace deprecated glShadeModel. To decrease glShadeModel calls I've set GL_SMOOTH by default Reviewers: merwin, brecht Reviewed By: brecht Subscribers: blueprintrandom, Evgeny_Rodygin, AlexKowel, yurikovelenov Differential Revision: https://developer.blender.org/D1958
2016-06-08Cleanup: GPU arg wrappingCampbell Barton
2016-06-07GPU: Fix triple buffer w/ basic glsl shaderCampbell Barton
Needed to add GL_TEXTURE_RECTANGLE support to basic-shader.
2016-06-07GPU: make using the glsl basic-shader a flagCampbell Barton
This allows for it to be more easily tested.
2016-05-23Fix for all OpenGL lights affecting Cycles viewport, regardless of their ↵Sergey Sharybin
Enabled state Was a regression since e1b8a5d. Probably not very optimal fix, but better than a regression anyway.
2016-04-08Fix broken by D1880 line stipple deactivationAlexander Romanov
2016-04-08Wide lines + line stipple deprecated API replacementAlexander Romanov
The patch contains an implementation of the wide lines and the line stipple that is necessary for OpenGL upgrade. For the implementation I have chosen the geometry shader because it required minimum changes for the wrapper calls and such implementation is the best for the "basic shader" architecture. There are few shortcomings that can be corrected in future. They all are related to the fact that the lines in one strip are not connected with each other. So the stipple pattern is not continuous on the common vertex of two lines. There is also no continuity of form (each line is an independent rectangular). But the advantage is that even outdated glBegin, glVertex work! Though with the above restrictions. Continuity of form and stipple can be implemented with additional attributes, and it will require more changes in calls. At the moment, the patch replaces calls for some "gestures". It works satisfactorily for "cross" or "rectangular" and not so good for "lasso" and "circle" due to the above-mentioned shortcomings. Don't forget to set USE_GLSL to true for testing. Alexander Romanov (Blend4Web Team) Reviewers: merwin, brecht Reviewed By: merwin, brecht Subscribers: aligorith, Evgeny_Rodygin, AlexKowel, yurikovelenov Differential Revision: https://developer.blender.org/D1880
2016-01-09Cleanup: style, gpu moduleCampbell Barton
2015-12-28Fix opengl error when GLSL is on for basic shader: shader needs to beAntony Riakiotakis
bound before setting uniforms
2015-12-27OpenGL: stipple support added to basic GLSL shaderAlexander Romanov
The is intended to replace the deprecated glPolygonStipple() calls with a shader based alternative, once we switch over to GLSL shaders. Reviewers: brecht Differential Revision: https://developer.blender.org/D1688
2015-12-23Fix T47051: cycles viewport textured shadeless draw bug.Brecht Van Lommel
2015-12-08OpenGL: split off framebuffer, shader and texture code into separate files.Brecht Van Lommel
2015-12-06OpenGL: rename simple shader to basic shader.Brecht Van Lommel