BasicMaterial_v3 Op

BasicMaterial

A material without shading


<p>Using the basicmaterial is an easy way to set the final color of objects. Despice having Basic in it&#39;s name it can be used for lots of use cases.</p>


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


Example Patch example patch basicMaterial_v3

Open In Editor

Youtube Video Tutorial

INPUT PORTS


render (Trigger)

Color

r (Number)
g (Number)
b (Number)
a (Number)

Color Texture

texture (Object:texture)
colorizeTexture (Number:

<i>boolean</i>

)

<p>Multiply the RGBA color by the Texture Color, can be used to tint the texture</p>

Vertex Colors (Number:

<i>boolean</i>

)

<p>If the current geometry provides vertex colors they will be used</p>

Opacity

textureOpacity (Object:texture)

<p>Texture input for settings opacity/alpha channel of the final color. An easy way to create a mask or holes in the object</p>

Alpha Mask Source index (Number:

<i>integer</i>

)
 Luminance  R  G  B  A  1-A  1-R 

<p>What information should control the final alpha channel/opacity ?</p>

Opacity TexCoords Transform (Number:

<i>boolean</i>

)

Discard Transparent Pixels (Number:

<i>boolean</i>

)

Texture Transform

diffuseRepeatX (Number)

<p>Repeat the texture on the X axis. e.g.: 2 - shows the images twice, 0.5 only shows half of the image</p>

diffuseRepeatY (Number)
Tex Offset X (Number)

<p>Scroll the texture on the X axis</p>

Tex Offset Y (Number)
Crop TexCoords (Number:

<i>boolean</i>

)

<p>Do not repeat the image, for example when scrolling &gt; 1</p>

billboard (Number:

<i>boolean</i>

)

<p>Rotate the final object perpendicular to the camera</p>

OUTPUT PORTS


trigger (Trigger)
shader (Object)

Patches using BasicMaterial_v3

  • Examples
  • Public
  • My Patches

Changelog


featureadded "use vertex color" input parameteruser avatarpandur - 2022-01-31 09:09
bugfixTexture transform is now usable with only an opacity/mask texture connecteduser avatarpandur - 2024-02-15 08:01