MatCapMaterial_v3 Op

MatCapMaterial

Easy to use image based lighting Material


<p>In 3D computer graphics, the appearance of an 3D object depends on several things:</p> <p>the surface normals (which determine how the object is shaded); the point from which the object is viewed; the lighting setup (orientation and types of lights); and how the surface reacts to that lighting (for example, how shiny it is). MatCap (Material Capture, also known as LitSphere) are complete materials, including lighting and reflections, so you can add it to an object and not have any need for, well, lighting and reflections. MatCaps allows you to create a surface material and lighting environment simply by painting an object so that it looks like how you want your surface to appear. This opens up all sorts of interesting possibilities for non-photoreal image rendering.</p> <p>The key to using a MatCap texture is that is is mapped to the object’s normals (which exist in relation to the camera) defining a color for every vertex normal direction relative to the camera, and your material is set to shadeless (because you don’t need lights to have any influence, as they are a part of the MatCap texture). So as the camera moves around the object, the reflections and highlights move around your object (as if the object were moving and not the camera). In other words, if your object were a sphere, no matter how you looked at it, it would look like the matcap sphere (reflections always in the same place, e.g.). But as your object takes non-spherical shapes, thus changing the normals, the material responds as if it were made of the complex material.</p> <p>MatCap is most commonly used for sculpting, as it gives quick and useful feedback on how an objects shape is changing. It also works with rendering, to an extent (good when you need to do a quick show-off-your-model render and don’t have time to set up any complex lights or materials). It&#39;s very cheap, and looks great when the camera doesn&#39;t rotate.</p> <p>Text taken from <a href="https://github.com/nidorx/matcaps">https://github.com/nidorx/matcaps</a></p> <p>Be sure to check out the repository to find a huge archive of matcaps!</p> <p>Use at your own risk :)</p>


Full Name
  • Ops.Gl.Shader.MatCapMaterial_v3
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorgithubTest Patches


Example Patch MatCapMaterialNew - Example

Open In Editor

Youtube Video Tutorial

INPUT PORTS


Render (Trigger)

<p>trigger input</p>

MatCap (Object:texture)

<p>matcap texture input</p>

Texture Maps

Diffuse (Object:texture)

<p>diffuse texture input</p>

Normal (Object:texture)

<p>normal map input</p>

Specular Mask (Object:texture)

<p>specular mask input</p>

Specular MatCap (Object:texture)

<p>specular matcap input</p>

AO Texture (Object:texture)

<p>AO texture input</p>

Opacity Texture (Object:texture)

<p>opacity texture input</p>

Color

r (Number)

<p>R channel of diffuse color</p>

g (Number)

<p>G channel of diffuse color</p>

b (Number)

<p>B channel of diffuse color</p>

Opacity (Number)

<p>Alpha channel of diffuse color</p>

Texture Transforms

AO Intensity (Number)

<p>Intensity of AO texture</p>

Normal Map Intensity (Number)

<p>Intensity of Normal Map</p>

Repeat X (Number)

<p>Texture Repeat along the x-axis</p>

Repeat Y (Number)

<p>Texture Repeat along the y-axis</p>

Offset X (Number)

<p>Texture Coordinate offset along the x-axis</p>

Offset Y (Number)

<p>Texture Coordinate offset along the y-axis</p>

Normals

Double Sided (Number:

<i>boolean</i>

)

Screen Space Normals (Number:

<i>boolean</i>

)

<p>check to use screen space normals (flat shading)</p>

Calc normal tangents (Number:

<i>boolean</i>

)

<p>calculate normals &amp; tangents</p>

Texture Opacity

Opacity TexCoords Transform (Number:

<i>boolean</i>

)

<p>invert y-axis of opacity texture texture coordinates</p>

Discard Transparent Pixels (Number:

<i>boolean</i>

)

<p>discard transparent pixels under a threshold of 0.2</p>

Alpha Mask Source index (Number:

<i>integer</i>

)
 Luminance  R  G  B  A 

<p>switch to choose which channel of the texture should be used for alpha mapping</p>

OUTPUT PORTS


Next (Trigger)

<p>output trigger</p>

Shader (Object)

<p>shader output</p>


Patches using MatCapMaterial_v3

  • Examples
  • Public
  • My Patches

Changelog


created opuser avatarsimod - 2020-09-09 17:13
improvementdouble sided toggleuser avatarpandur - 2024-09-10 07:30