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-24TexFace removal part 2Campbell Barton
- Derived-mesh drawing. - All non UV members of TexFace structs. MTexPoly is now redundant but keeping with a dummy member, will check on complete removal later.
2017-05-19Remove unused functions after WITH_LEGACY_OPENGL cleanupDalai Felinto
2017-05-19Remove reference to WITH_LEGACY_OPENGLDalai Felinto
We only keep this as a way to get GPU_stubs to run, in case we want to do a throughout cleanup in the codebase and want code using legacy calls to fail to build.
2017-05-19Remove reference to SUPPORT_LEGACY_MATRIXDalai Felinto
Since the change to core profile this is no longer supported.
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-27OpenGL: stop enabling GL_TEXTUREMike Erwin
Texturing is always enabled in GLSL. Simply use a sampler in the shader. Replaced gpu_generate_mipmap with glGenerateMipmap since the former just Enabled/Disabled the texture target and called the latter. Part of T51164
2017-04-24Convert BaseLegacy to Base (part)Luca Rood
2017-04-19Comment out places which are using texture matrix mode for core profileSergey Sharybin
There is only two places which are using texture matrix mode: - Tiled tface support. - Texture shading mode for texture mapping. Both cases are subject for reconsideration: it is likely that we'll be getting rid of tface, which means game properties like tiles needs to be revisited anyway. As for texture shading it is using basic shader which is also not supported by core profile anyway.
2017-03-27OpenGL: use old API for texture matrixMike Erwin
New matrix API does not support texture matrices. Not sure what the final code will look like, but this at least avoids interference with new ModelView matrix. Marked each line with TEXTURE so they can be disregarded during searches. Related to T49450
2017-03-22OpenGL: convert to new matrix API (part 5)Mike Erwin
Pretty sure source/blender is now finished, with all legacy matrix calls confined to gpu_matrix.c. This was the easy part, but doing it first makes the next part much easier. TODO and XXX notes describe what is left. glMatrixMode is still in place, since the new API does not share this concept of modes. Similar for glOrtho and glFrustum which I'll tackle very soon. Part of T49450
2017-03-02Remove all instances of OBACT from drawobject.c and related changesDalai Felinto
2017-03-02Remove tons of OBACTDalai Felinto
There are now only referenced in: * drawobject.c * particle_edit.c * space_image.c (a single case to be handled on workspace branch) * rigidbody_constraint.c (to be handled in the following commit)
2016-08-25Fix T48788: Diffuse color in BI Textured Solid mode is not updating properly ↵Sergey Sharybin
in Sculpting mode Was caused by 6276726, so for the time being revert the optimization part of change.
2016-08-02Viewport: Make lights in local view behave like BI and CyclesJulian Eisel
Ignore that lights are not included in local view, always render them if they are on the correct layers. BI and Cycles do this as well.
2016-07-22Cleanup: pass pointer to texture draw stateCampbell Barton
2016-07-02Cleanup: styleCampbell Barton
2016-06-30Fix T48728, part 2: Vertex colors not shown in texture modeSergey Sharybin
2016-06-29Correction to previous commit: Only skip colors for texture paintSergey Sharybin
This way we avoid regression of sculpt mode shading. Hopefully now it's all fine.
2016-06-29Fix T48728: Vertex colors not shown in texture modeSergey Sharybin
Regression caused by own changes to make texture paint more efficient from workflow point of view. Now the idea is to use vertex color outside of paint mode, so we don't break any compatibility here.
2016-06-10GPU: use basic-shader for line-stippleCampbell Barton
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-08GPU: fix texface image w/ basic-shaderCampbell Barton
2016-05-22Use previous shading mode for border render in viewportSergey Sharybin
This way we can have border rendered part in the viewport and have everything else material/texture shaded.
2016-05-13Fix T47652: Texture shading mode fails to update material colorsCampbell Barton
2016-02-11Fix T47389: WPaint + texture entirely transparentCampbell Barton
2016-02-02Cleanup: rename uvflag -> flag for dm drawingCampbell Barton
Was called both, however this isn't mainly for uv's so just call 'flag'. Also remove redundant NULL check.
2016-02-02Partial Fix T47221: Sculpt Hide fails w/ texture drawingCampbell Barton
Support for skipping hidden faces in sculpt mode w/ texture drawing.
2016-01-27World textures displaying for viewport in BI.Alexander Romanov
This patch supports "Image or Movie" and "Environment map" types of world texture for the viewport. It supports: - "View", "AngMap" and "Equirectangular" types of mapping. - Different types of texture blending (according to BI world render). - Same color blending as when it lacked textures (but render via glsl). {F207734} {F207735} Example: {F275180} Original author: @valentin_b4w Regards, Alexander (Blend4Web Team). Reviewers: sergey, valentin_b4w, brecht, merwin Reviewed By: merwin Subscribers: campbellbarton, merwin, blueprintrandom, youle, a.romanov, yurikovelenov, AlexKowel, Evgeny_Rodygin Projects: #rendering, #opengl_gfx, #bf_blender:_next Differential Revision: https://developer.blender.org/D1414
2016-01-25Fix T47218: OpenGL render with missing alpha, due to recent OpenGL refactoring.Brecht Van Lommel
Patch by Ralf Hölzemer.
2016-01-03Get rid of yet another instance of DM_DRAW_OPTION_NO_MCOLAntony Riakiotakis
Logic here is weird. Generally, textured drawing overrides material color unless material uses object color instead? It doesn't make sense, material color is a material color whatever the circumstance. Repeating: idea as always is to push all those options out of per- polygon callbacks and make decisions such as color enable in the higher level functions.
2016-01-03Get rid of three needless instances of DM_DRAW_OPTION_NO_MCOL.Antony Riakiotakis
It would be good to get rid of this entirely, ideally decision about mcols can be taken at material level and not done per face. More work needs to be done for that to work though.
2015-12-12Cleanup: style/spellingCampbell Barton
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
2015-12-06OpenGL: isolate fixed function lighting in simple shader code.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D1645
2015-12-06OpenGL: pass flag to indicate of drawMappedFaces needs to use normals.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D1645
2015-11-28OpenGL: rename GPU_enable_material to better indicate it's binding shaders.Brecht Van Lommel
2015-11-27OpenGL: fix cycles texture draw mode not respecting double sided lighting.Brecht Van Lommel
2015-11-25OpenGL: GLSL always supportedMike Erwin
In gpu lib: - GPU_glsl_support() always returns true - internal cleanup & comments Outside gpu lib: - remove check from various code, remove the “else” path - sprinkled a few C99-isms We can remove GPU_glsl_support() when BGE stops calling it.
2015-11-12Fix T46749: Texture paint & shadeless mode failsCampbell Barton
Using shadeless did nothing in texture-paint mode. (regression in 2.76)
2015-10-28Cleanup: warning/styleCampbell Barton
2015-10-28Follow up to previous commit, proper fix for T46284, incorrect TextureAntony Riakiotakis
shading in Texture paint mode and cycles
2015-10-28Revert "Fix T46284: Texture paint, wrong shading mode"Antony Riakiotakis
Should fix T46616 but will reintroduce T46284. The second, original bug needs different handling This reverts commit 904db487a7b14c31282fe0284612159a836657cd.
2015-10-14Fix T46284: Texture paint, wrong shading modeCampbell Barton
Project-paint now supports painting to cycles materials.
2015-10-11Fix warnings and remove casts by adding copy_vx_vx_uchar() functions.Brecht Van Lommel
2015-07-29CleanupCampbell Barton
2015-07-25GPU Buffers:Antony Riakiotakis
This commit begins implementation of the idea about hidden face separation outlined in http://code.blender.org/2015/06/optimizing-blenders-real-time-mesh- We split hidden and visible faces to different parts of the triangle buffer. Mapped drawing will now skip iterating through hidden polys. Of course the final target, when all derived mesh types use VBO sorting, is to skip checking for hide flag per face completely. All faces will be pre-sorted anyway and we'll be able to draw them with one draw call.
2015-07-22Fix weight painting + mask not drawing in latest master.Antony Riakiotakis
Same issue as vertex painting - though one might wonder if we really need to set material on such occasions.
2015-07-17Only use material callback when enabledCampbell Barton
Vert/Face select in painting modes weren't drawing after recent changes.
2015-07-16Add tessellation data to DerivedMesh (LoopTri)Campbell Barton
This stores loop indices into the loop array giving easier acess to data such as vertex-colors and UV's, removing the need to store an MFace duplicate of custom-data. This doesn't yet move all internal code from MFace to LoopTri just yet. Only applies to: - opengl drawing - sculpting (pbvh) - vertex/weight paint Thanks to @psy-fi for review, fixes and improvements to drawing!