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-01Eevee: Add support for legacy materials node. (not PBR)Clément Foucault
2017-05-01GPUMaterial: Making material node tree compatible with new drawmanager.Clément Foucault
- code_generate_fragment : Making sure that shaders uses the new uniforms. - code_generate_vertex_new : create require attribute based on their names and not their id (see draw_cache_impl_mesh.c). - add support for ramp textures.
2017-05-01Mesh Batch Cache: Add support for uv/vcol/tangent data layers.Clément Foucault
This is a bad implementation waiting for some improvement that are : - Gawain support for multiple names. -> will remove duplication of attribute alloc - Glsl safe name string escaping. -> will remove any risk of hash colision. Old glsl drawing was relying on attribute being choosen by DerivedMesh at drawing time. For this reason, we declare all possible attrib "name" for each data layer inside the batches. In the glsl code, we declare required data by type and name. Then Gawain only bind vbos if names correspond. This is way cleaner as we do not need to access the CD itself when drawing. One other problem is that the hash maybe 11 caracters long and rapidly overload gawain's attrib name buffer.
2017-05-01Eevee: Change MAX2 to max_ffClément Foucault
2017-05-01Eevee: World nodetree gpumaterial compatibility.Clément Foucault
- Unify GPUMaterial creation (world/mesh). - Support for multiple shader variations (not used for now). - Convert GPUInputs to DRWUniforms to be used with the draw manager. - Nodetree Update is not supported. The only way to refresh the shaders is to change render engine. - Cleanup in GPUPass. - Add new temporary Node Compatibility type. Compatibility types should be removed in the future.
2017-05-01Getting rid of setlinestyle: FCurves drawing.Bastien Montagne
2017-05-01Getting rid of setlinestyle: last bit in NLA.Bastien Montagne
Note that smooth-shaded outlines of muted NLA strips should also be dashed, not sure how to do that currently (in a simple way), so kept them solid for now.
2017-05-01Fix for issue when duplicating text objectsDalai Felinto
The crash happens with Cycles and Font objects if we get Cycles working with draw manager.
2017-05-01Cleanup/followup to previous commit: get rid of dashed-specific helpers.Bastien Montagne
Those are no more needed.
2017-05-01Reworked version of dashed line shader.Bastien Montagne
Using geometry shader allows us to get rid of the 'line origin' extra vertex attribute, which means dashed shader no longer requires fiddling with those vertex attributes definition, and, most importantly, does not require anymore special drawing code! As you can see, this makes code much simpler, and much less verbose, especially in complex cases. In addition, changed how dashes are handled, to have two 'modes', a simple one with single color (using default "color" uniform name), and a more advanced one allowing more complex and multi-color patterns. Note that since GLSL 1.2 does not support geometry shaders, a hack was added for now (which gives solid lines, but at least does not make Blender crash).
2017-05-01WITH_CLAY_ENGINE: Should be used for CLAY only, not drawmanagerDalai Felinto
2017-05-01Draw Manager: Fix copy-paste harmless comment "typo"Dalai Felinto
2017-04-29Getting rid of setlinestyle: sample line in Image space.Bastien Montagne
2017-04-29Getting rid of setlinestyle: UV editor drawing.Bastien Montagne
2017-04-29Getting rid of setlinestyle: remove gpencil's debug-only dashed line drawing.Bastien Montagne
No need to add extra complexity of conditional dashing here for now!
2017-04-29Getting rid of setlinestyle: ed_util's pos-to-mouse dashed line.Bastien Montagne
2017-04-29Getting rid of setlinestyle: GPencil eraser.Bastien Montagne
Note the ugly hack on number of segments for outline dashed circle, to get an OK-ish rendering of dashes...
2017-04-29Getting rid of setlinestyle: add imm_draw_circle_wire_dashed() util.Bastien Montagne
Needed a bit of twisting in generic private func behind the imm_draw_circle helpers, but think it's fine. Note that this demonstrate yet another downside of new dashed shader compared to olde line style: not only does it needs more complex setup, and can only work with PRIM_LINES type of primitives, but it also behaves totally wrong with chained short segments! We really need to find a better way to do this effect at some point. :(
2017-04-29Cleanup: comment blocksCampbell Barton
2017-04-29Merge branch 'master' into blender2.8Campbell Barton
2017-04-29Cleanup: comment blocksCampbell Barton
2017-04-29View3D: support both orbit select & depthCampbell Barton
When using both preferences, use cursor depth when nothings selected.
2017-04-29Curve Fitting: minor change to re-fitting methodCampbell Barton
Avoid calculating a new split-index when re-fitting. While checking if a knot can be removed, the index with the highest error can be used as a candidate to replace the knot (in the case it can't be removed).
2017-04-29Getting rid of setlinestyle: NLA (part I).Bastien Montagne
Also restore drawing of local action markers in NLA strips... Note: there is another usage of setlinestyle in this file, not sure how to hanlde it for now, so will leave it for later...
2017-04-29Getting rid of setlinestyle: Color ramp markers.Bastien Montagne
2017-04-29Getting rid of setlinestyle: Text space margin line.Bastien Montagne
2017-04-29Cleanup: rename struct for private engine dataCampbell Barton
Also remove from pass list (there were some duplicate unused entries).
2017-04-29Merge branch 'master' into blender2.8Campbell Barton
2017-04-29Cleanup: unused includesCampbell Barton
2017-04-29Draw manager: Style cleanupsDalai Felinto
2017-04-29Implementation of custom python entries in all right click menusThomas Beck
Hi Guys, as one of my clients needs the possibility to have custom menu entries in the general right click menu (all over Blender: in the node editor, properties, toolbars,..) I talked with Campbell about expanding our hard coded menu a bit. This is the outcome. As I only need those two, I support currently a button_prop and a button_pointer. {F540397} I tested the changes with a custom script where I added a custom entry and executed an operator on click - it seems to work exactly how it's intended to. The script: {F540435} As I'm not too experienced in rna stuff I would really appreciate any review. Thanks very much Campbell for his open ears & help on this issue! Reviewers: campbellbarton, mont29 Reviewed By: campbellbarton, mont29 Subscribers: sybren, mont29 Tags: #addons Differential Revision: https://developer.blender.org/D2612
2017-04-28Disable custom armature colorsCampbell Barton
2017-04-28Merge branch 'master' into blender2.8Campbell Barton
2017-04-28Getting rid of setlinestyle: Clip drawing code.Bastien Montagne
This one has been painful, it's doing lots of nifty conditional drawing of all kind... Also, very nice illustration of how cumbersome it is to use dashed shader currently, we really need to find a simpler way at some point imho. But this is not critical issue either, for now we can live with some uglyness like that. :/
2017-04-28Getting rid of setlinestyle: markers' dashed line in VSE.Bastien Montagne
2017-04-28Fix T51324: Auto-Depth fails rotating out of cameraCampbell Barton
2017-04-28Merge branch 'master' into blender2.8Sybren A. Stüvel
2017-04-28Hide object center and other info when drawing setsCampbell Barton
2017-04-28Alembic: use object-oriented approach in ABC_read_mesh()Sybren A. Stüvel
This is easier to extend than the if/else if/else chain that was in place, and allows for somewhat more granular error messages.
2017-04-28Alembic: Construct ISampleSelector once and pass alongSybren A. Stüvel
2017-04-28Correct comment, we need wire_outline data in this caseCampbell Barton
2017-04-28Draw Manager: pose-mode custom bone displayCampbell Barton
2017-04-28Recent commit state broke lattice vertex drawingCampbell Barton
e4d856e3 caused lattice vertices not to draw in editmode.
2017-04-27Fix draw manager draw-modes interfering with eachotherCampbell Barton
2017-04-27Draw Manager: basic text overlay supportCampbell Barton
2017-04-27OpenGL: manage legacy state only when WITH_LEGACY_OPENGL=ONMike Erwin
- enabled lights - alpha test - texture environment - point sprites (always enabled in modern GL) Moved is_clip_plane for better struct packing, no functional change there. Part of T51164
2017-04-27OpenGL: don't set texture LoD bias via glTexEnvfMike Erwin
Not supported in core profile. We could do this in GLSL if it's really needed. Part of T51164
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: fix color logic opMike Erwin
GL_LOGIC_OP is a synonym for GL_INDEX_LOGIC_OP, from OpenGL 1.0's indexed color drawing. It's not part of modern GL and causes an error in core profile. GL_COLOR_LOGIC_OP is still supported in the latest GL. It's the last stage before writing to the framebuffer. Part of T51164
2017-04-27Add back text color for legacy drawingCampbell Barton