BasicMaterial_v3 Op

BasicMaterial

A material without shading


Using the basicmaterial is an easy way to set the final color of objects. Despice having Basic in it's name it can be used for lots of use cases.


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: boolean)

Multiply the RGBA color by the Texture Color, can be used to tint the texture

Vertex Colors (Number: boolean)

If the current geometry provides vertex colors they will be used

Opacity

textureOpacity (Object:texture)

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

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

What information should control the final alpha channel/opacity ?

Opacity TexCoords Transform (Number: boolean)
Discard Transparent Pixels (Number: boolean)

Texture Transform

diffuseRepeatX (Number)

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

diffuseRepeatY (Number)
Tex Offset X (Number)

Scroll the texture on the X axis

Tex Offset Y (Number)
Crop TexCoords (Number: boolean)

Do not repeat the image, for example when scrolling > 1

billboard (Number: boolean)

Rotate the final object perpendicular to the camera

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