BabylonJS / Documentation

Babylon.js's documentation website
https://doc.babylonjs.com
Apache License 2.0
79 stars 236 forks source link

Node Material Node Descriptions Page #394

Closed PirateJC closed 2 years ago

PirateJC commented 2 years ago

Split apart the Node Material page into two different pages.

All node descriptions can be on a separate page.

Also add the following new node descriptions:

General notes:

• Scene depth shows up in the Inputs section in the docs, but is under Scene in NME, we should move it under scene in the docs

Inputs:

ImageSource: A node for reading an embedded or linked image that can be shared across several Texture nodes. • Output: o Source: can only be used as an input on a Texture block

Logical

And: If both inputs are non-zero values the block evaluates true, otherwise it evaluates false. • Inputs: o a: Float o b: Float o true: Float, Vector2, Vector3, Vector4, Color3, Color4 • Outputs: o output: Float

Equal: If both inputs are equal the block evaluates true, otherwise it evaluates false. • Inputs: o a: Float o b: Float o true: Float, Vector2, Vector3, Vector4, Color3, Color4 • Outputs: o output: Float

GreaterOrEqual: If input a is greater or equal to input b the block evaluates true, otherwise it evaluates false. • Inputs: o a: Float o b: Float o true: Float, Vector2, Vector3, Vector4, Color3, Color4 • Outputs: o output: Float

GreaterThan: If input a is greater than input b the block evaluates true, otherwise it evaluates false. • Inputs: o a: Float o b: Float o true: Float, Vector2, Vector3, Vector4, Color3, Color4 • Outputs: o output: Float

LessOrEqual: If input a is less than or equal to input b the block evaluates true, otherwise it evaluates false. • Inputs: o a: Float o b: Float o true: Float, Vector2, Vector3, Vector4, Color3, Color4 • Outputs: o output: Float

LessThan: If input a is less than input b the block evaluates true, otherwise it evaluates false. • Inputs: o a: Float o b: Float o true: Float, Vector2, Vector3, Vector4, Color3, Color4 • Outputs: o output: Float

NotEqual: If input a not equal to input b the block evaluates true, otherwise it evaluates false. • Inputs: o a: Float o b: Float o true: Float, Vector2, Vector3, Vector4, Color3, Color4 • Outputs: o output: Float

Or: If either input is a non-zero value the block evaluates true, otherwise it evaluates false. • Inputs: o a: Float o b: Float o true: Float, Vector2, Vector3, Vector4, Color3, Color4 • Outputs: o output: Float

Xor: if input a and input b are both a value of zero the block evaluates false, otherwise it evaluates true. • Inputs: o a: Float o b: Float o true: Float, Vector2, Vector3, Vector4, Color3, Color4 • Outputs: o output: Float

Math: Vector

ScreenSpace: Converts a world space position into the corresponding XY screen coordinates in a range of -1 to 1. • Inputs: o vector: Vector3, Vector4 o worldViewProjection: Matrix • Outputs: o output: Vector2 o X: Float o Y: Float

Twirl: Twirls UV coordinates around the W axis • Inputs: o input: Vector2 o strength: Float o center: Vector2 o offset: Vector2 • Outputs: o output: Vector2 o X: Float o Y: Float

Matrices

MatrixBuilder: Creates a custom matrix from four Vector4 inputs. • Inputs: o row0: Vector4 o row1: Vector4 o row2: Vector4 o row3: Vector4 • Outputs: o output: Matrix

Mesh

WorldTangent: A Vector4 representing the tangent of each vertex of the attached mesh transformed into world space. • Inputs: o vector: Vector3 o transform: Matrix • Outputs: o output: Vector4 o xyz: Vector3

Noises

VoronoiNoise: Creates a random pattern of cells in 2D. • Inputs: o seed: Vector2 o offset: Float o density: Float • Outputs: o output: Float o cells: Float

PirateJC commented 2 years ago

Addressed in this PR:

https://github.com/BabylonJS/Documentation/pull/401