PhongMaterial_v6 Op

PhongMaterial

A shaded material for lighting objects


<p>This is probably the most classic material of them all.</p> <p>It works stand-alone or in conjunction with the light ops.</p> <p>The op features 2 different diffuse color models, standard Lambert &amp; Oren-Nayar. Furthermore, there is a dropdown menu for 4 different specular models: Blinn-Phong, Schlick, Phong, Gauss.</p> <p>It also has Fresnel capabilities &amp; emissive color &amp; physical energy conservation of light (if desired).</p>


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


Example Patch PhongMaterial_v5 example

Example for the PhongMaterial op.

Open In Editor

INPUT PORTS


Trigger In (Trigger)

<p>Trigger in</p>

Diffuse Color

R (Number)

<p>Diffuse Red Value</p>

G (Number)

<p>Diffuse Green Value</p>

B (Number)

<p>Diffuse Blue Value</p>

A (Number)

<p>Opacity</p>

Oren-Nayar Diffuse

Albedo (Number)

<p>Albedo of the diffuse color</p>

Roughness (Number)

<p>Roughness of the diffuse color</p>

Fresnel

Fresnel Intensity (Number)

<p>Amount of Fresnel effect</p>

Fresnel Width (Number)

<p>Width of Fresnel effect</p>

Fresnel Exponent (Number)

<p>Exponent (Fade) of Fresnel effect</p>

Fresnel R (Number)

<p>Fresnel Red Value</p>

Fresnel G (Number)

<p>Fresnel Green Value</p>

Fresnel B (Number)

<p>Fresnel Blue Value</p>

Emissive Color

Emissive Active (Number:

<i>boolean</i>

)

<p>toggle to render emissive color</p>

Color Intensity (Number)

<p>intensity of emissive color</p>

Emissive R (Number)

<p>Emissive Red Value</p>

Emissive G (Number)

<p>Emissive Green Value</p>

Emissive B (Number)

<p>Emissive Blue Value</p>

Specular

Shininess (Number)

<p>Size of the specular reflection, the greater the value the smaller the reflection</p>

Specular Amount (Number)

<p>Amount of the specular reflection</p>

Textures

Diffuse Texture (Object:texture)

<p>Diffuse texture input</p>

Specular Texture (Object:texture)

<p>Specular texture input</p>

Normal Map (Object:texture)

<p>Normal Map input</p>

AO Texture (Object:texture)

<p>Ambient Occlusion texture input</p>

Emissive Texture (Object:texture)

<p>Emissive texture input</p>

Emissive Mask (Object:texture)

<p>emissive map mask texture input</p>

Opacity Texture (Object:texture)

<p>Opacity texture input</p>

Environment Map (Object:texture)

<p>environment map texture input</p>

Env Map Mask (Object:texture)

<p>environment map mask texture input</p>

Texture Transforms

Diffuse Repeat X (Number)

<p>How often a texture is repeated on the X axis (applied to all textures)</p>

Diffuse Repeat Y (Number)

<p>How often a texture is repeated on the Y axis (applied to all textures)</p>

Texture Offset X (Number)

<p>texture pixel offset on the C axis (applied to all textures)</p>

Texture Offset Y (Number)

<p>texture pixel offset on the Y axis (applied to all textures)</p>

Texture Intensities

Specular Intensity (Number)

<p>intensity of the specular texture</p>

Normal Map Intensity (Number)

<p>intensity of the normal map</p>

AO Intensity (Number)

<p>intensity of the Ambient Occlusion texture</p>

AO UV Channel index (Number:

<i>integer</i>

)
 1  2 

Texture Intensities

Emissive Intensity (Number)

<p>intensity of the emissive map</p>

Emissive Mask Intensity (Number)

<p>intensity of the emissive mask </p>

Env Map Intensity (Number)

<p>intensity of the environment map</p>

Env Map Blend index (Number:

<i>integer</i>

)
 Add  Multiply  Mix 
Env Mask Intensity (Number)

<p>intensity of the environment map mask</p>

Opacity Texture

Alpha Mask Source index (Number:

<i>integer</i>

)
 Luminance  R  G  B  A 

<p>which channel of the alpha texture to use for multiplying</p>

OUTPUT PORTS


Trigger Out (Trigger)

<p>Trigger out</p>

Shader (Object)

<p>Shader out</p>


Patches using PhongMaterial_v6

  • Examples
  • Public
  • My Patches

Changelog


Ops.User.cables.PhongMatNew renamed to Ops.Admin.PhongMaterial_v5user avatarcables - 2020-05-14 15:58
Ops.Admin.PhongMaterial_v5 renamed to Ops.Gl.Phong.PhongMaterial_v5user avatarpandur - 2020-07-29 22:45
cloned op from Ops.Gl.Phong.PhongMaterial_v5user avatarcables - 2021-04-14 12:14
Ops.User.cables.PhangMeteriel renamed to Ops.Gl.Phong.PhongMaterial_v6user avatarcables - 2021-04-14 15:58
added core lib: ammoworlduser avatarpandur - 2023-10-30 15:02
removed core lib: ammoworlduser avatarpandur - 2023-10-30 15:02