Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
vm_blockers is a collection of Slim templates
for light blocking and masking.
Tested with RAT 6.0
contains following templates:
BlockerSpace - manifold template defining the space in which light blockers should operate.Should be plugged into the manifold parameter of BlockerElement.Zero is at the center of coordinate system. Edges of coordinate system correspond to -0.5 and 0.5. So don't forget to translate Your coordinates when reading textures in this manifold.
BlockerElement - color template for light blocking and masking.
Produces fake shadows (blocker shadows) and window effects.
You may plug it directly into Shadow parameter of Your lightsource
or use CombineBlockerList for more complex compositing
with other blockers and standart shadows
CombineBlockerList - color combiner list template for combining an arbitrary list of BlockerElements.
Test scene with sample slim shading nertwork included
Click on thumbnail to see the image rendered from the test scene