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
2018-12-05Workbench: Cleanups and reduce shader variationsClément Foucault
Also optimize deferred engine by only outputing material data if needed. This make the bare flat shading mode (no effects) only a depth prepass.
2018-12-03Workbench: Encode Roughness and metallic into 8bitsClément Foucault
This reduces the bandwidth + vram usage of workbench even further.
2018-12-03Workbench: Make object ID pass optionnalClément Foucault
We separate the background and foreground shading passes to be able to make the object id pass optionnal if we don't need it. This saves a bit more memory. Also not clearing all rendertargets saves some GPU time too.
2018-12-03Workbench: Reduce VRAM usage depending on modeClément Foucault
We exploit the fact that we are using the metallic workflow for material and pass the metallic parameter instead of the specular color. Pack the front facing bit in the color buffer only for matcap display. Change buffer formats to use less bytes as possible. Also don't request buffers that we won't use. Saved 40MB on 2K screen on StudioLight + Shadows + Specular Lighting. Includes several cleanups.
2018-11-30Workbench: Add Shadow Focus and change Shadow OrientationClément Foucault
Shadow focus let the user choose how hard are is the shadows transition. Harder shadow transition can be used for stylistic effects or more uniform shading. Make shadow orientation respect the same orientation as the studio light (view from +Y direction aka. front view). Make the default shadow direction more similar to the default light position (the default light object, not the default studio lighting).
2018-11-30Workbench: Cleanups & SimplificationsClément Foucault
* Move the curvature computation to the cavity pass: One can argue it's not the best performance wise (it gets a tiny perf pernalty if it is done alone without the ssao), but it make the code cleaner and reduce considerably the number of shader variation possible. * Lower shader variation to 2^8 instead of 2^12
2018-11-29Workbench: Rename orientation to type and Camera studio light to StudioClément Foucault
2018-11-28Workbench: Change Studio lightingClément Foucault
This is in order to have more flexible ligthing presets in the future. The diffuse lighting from hdris was nice but lacked the corresponding specular information. This is an attempt to make it possible to customize the lighting and have a cheap/easy/nice-looking pseudo-PBR workflow. * Add cheap PBR to Workbench with fresnel and better roughness support. This improves the look of the metallic surfaces and is easier to control. * Add ambient light to studio lights settings: just a constant color added to the shading. * Add Smooth option to studio lights settings: This option fakes the effect of making the light bigger making the lighting smoother for this light. Smoother lights gets reflected like a background hdri. * Change default light settings to include the smooth params. * Remove specular highlights from flat shading. (could be added back but how do we make it good looking?) * If specular lighting is disabled, use base color without using metallic. * Include a lot of code simplification/cleanup/confusion fix.
2018-11-26Workbench: Add Curvature overlay for better visibility of surface detail for ↵Lukas Stockner
e.g. sculpting The approach is fairly simple, just apply an edge detection filter to the view normal and scale the brightness based on that. The overlay is disabled at object boundaries to avoid dark lines around objects. Generally, this implementation follows the proposal of @monio at https://blender.community/c/rightclickselect/J9bbbc. The changes are: - Dynamic filter radius (on high-DPI displays, a radius of two is used) - Options to reduce the strength of both ridges and valleys - Tweaked function for the strength reduction (the original method actually had a local maximum, resulting in a brighter line inside valleys) - Multiplication for blending instead of overlay, which doesn't work reliably with scene-referred intensities - Renamed to point out the distinction between it and the SSAO-based cavity overlay Reviewers: jbakker Reviewed By: jbakker Subscribers: billreynish, manitwo, linko, monio Differential Revision: https://developer.blender.org/D3617
2018-10-04Fix T56992 caused by typo in previous fixClément Foucault
2018-10-03Fix T56992: OpenGL Render Engine ignores Transparent BackgroundClément Foucault
Correct the outline blending for alpha 0 background.
2018-07-03Workbench: Fix wrong shading shadoow direction.Clément Foucault
2018-06-20T55550: Workbench Shadows are incorrect in first draw cycleJeroen Bakker
Shadows uses the old location for light_direction. Maybe a merge conflict.
2018-06-15Workbench OpenGL render: always render alpha on 1.0Jeroen Bakker
Old implementation rendered alpha to 0.0 for background, but only during deferred rendering. We should attach this to an DNA setting and also let the forward shading respect this. But for now this is a better default
2018-06-09Workbench: Matcaps: Fix matcap under perspective.Clément Foucault
This fixes the problem that matcaps have when using a very larg FOV in perspective view. This was because it was stupidly using the normal direction which can not aligned with the view vector under perspective. So to workaround this problem we don't use the normal as is, but compute how much it's facing the camera. This changes how matcaps looks in perspective because they now always use the full range of the matcap (which is expected).
2018-06-09Workbench: Fix incident vector calculation.Clément Foucault
This fixes specular in perspective view.
2018-06-08Workbench: XFlip Matcap per 3D ViewJeroen Bakker
Note: Icons are not yet updated.
2018-06-06T55333 Workbench: Cavity ShaderJeroen Bakker
A cavity shader based on SSAO. Works on all workbench deferred passes. Per 3d viewport the cavity shader options can be set as different shading needed different options. Some global options are in the Viewport Display of the scene like num samples and distance. Experimental: Naming of Ridges and Valleys
2018-06-05Workbench: Matcaps T55291Jeroen Bakker
- users can use their own matcaps .config/blender/2.80/datafiles/studiolights/matcap/ folder - upto 100 matcaps can be loaded - color of the matcap is influenced by the color of the material/single color etc. To show the plain matcap use single color at 1.0 - chosing a matcap is at lighting level (flat/studio/matcap) - matcap only possible in solid mode - also works for X-Ray mode As the old matcaps are still in used by the clay engine I didn't remove it yet.
2018-06-03Workbench: Rework hair support.Clément Foucault
Now hairs are shaded properly in workbench and support texturing. I also added a 10% random normal direction per hair to have a bit more variation in the shading. This is hardcoded for now.
2018-06-01Workbench: Material specific settings for the specularJeroen Bakker
- Uses the roughness setting of the basic eevee material - renamed gloss_mir to roughness - set default of roughness to 0.25 - renamed ray_mirror to metallic - cleaned up material rna (BI mirror struct) - use BLINN phong model - normalize incoming/outgoing specular light - when using camera oriented studiolight, the SolidLight will be used for specular highlights - EXPERIMENT: when in world oriented studiolight only the shadow direction will be used. - change the settings of the internal light to make scenes more readable
2018-05-30Removed Object color from workbench. Added Highlights to FLAT shading.Jeroen Bakker
2018-05-30Workbench: Specular HighlightsJeroen Bakker
Added specular highlights for: - Solid studio shading - Texture studio shading
2018-05-22Workbench: SeeThrough draw optionJeroen Bakker
Option to see through all meshes (transparency) Works for OB_SOLID and OB_TEXTURED. Does not work for V3D_SHADING_SHADOW. TODO: Fresnel effect