PhongMaterial_v6 Op

PhongMaterial

A shaded material for lighting objects


This is probably the most classic material of them all.

It works stand-alone or in conjunction with the light ops.

The op features 2 different diffuse color models, standard Lambert & Oren-Nayar.
Furthermore, there is a dropdown menu for 4 different specular models:
Blinn-Phong, Schlick, Phong, Gauss.

It also has Fresnel capabilities & emissive color & physical energy conservation of light (if desired).


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)

Trigger in

Diffuse Color

R (Number)

Diffuse Red Value

G (Number)

Diffuse Green Value

B (Number)

Diffuse Blue Value

A (Number)

Opacity

Oren-Nayar Diffuse

Albedo (Number)

Albedo of the diffuse color

Roughness (Number)

Roughness of the diffuse color

Fresnel

Fresnel Intensity (Number)

Amount of Fresnel effect

Fresnel Width (Number)

Width of Fresnel effect

Fresnel Exponent (Number)

Exponent (Fade) of Fresnel effect

Fresnel R (Number)

Fresnel Red Value

Fresnel G (Number)

Fresnel Green Value

Fresnel B (Number)

Fresnel Blue Value

Emissive Color

Emissive Active (Number:boolean )

toggle to render emissive color

Color Intensity (Number)

intensity of emissive color

Emissive R (Number)

Emissive Red Value

Emissive G (Number)

Emissive Green Value

Emissive B (Number)

Emissive Blue Value

Specular

Shininess (Number)

Size of the specular reflection, the greater the value the smaller the reflection

Specular Amount (Number)

Amount of the specular reflection

Textures

Diffuse Texture (Object:texture)

Diffuse texture input

Specular Texture (Object:texture)

Specular texture input

Normal Map (Object:texture)

Normal Map input

AO Texture (Object:texture)

Ambient Occlusion texture input

Emissive Texture (Object:texture)

Emissive texture input

Emissive Mask (Object:texture)

emissive map mask texture input

Opacity Texture (Object:texture)

Opacity texture input

Environment Map (Object:texture)

environment map texture input

Env Map Mask (Object:texture)

environment map mask texture input

Texture Transforms

Diffuse Repeat X (Number)

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

Diffuse Repeat Y (Number)

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

Texture Offset X (Number)

texture pixel offset on the C axis (applied to all textures)

Texture Offset Y (Number)

texture pixel offset on the Y axis (applied to all textures)

Texture Intensities

Specular Intensity (Number)

intensity of the specular texture

Normal Map Intensity (Number)

intensity of the normal map

AO Intensity (Number)

intensity of the Ambient Occlusion texture

AO UV Channel index (Number:integer ) 1  2 

Texture Intensities

Emissive Intensity (Number)

intensity of the emissive map

Emissive Mask Intensity (Number)

intensity of the emissive mask

Env Map Intensity (Number)

intensity of the environment map

Env Map Blend index (Number:integer ) Add  Multiply  Mix 
Env Mask Intensity (Number)

intensity of the environment map mask

Opacity Texture

Alpha Mask Source index (Number:integer ) Luminance  R  G  B  A 

which channel of the alpha texture to use for multiplying

OUTPUT PORTS


Trigger Out (Trigger)

Trigger out

Shader (Object)

Shader out


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