MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / SetVector

Method SetVector

StereoKit/Assets/Material.cs:378–379  ·  view source on GitHub ↗

Sets a shader parameter with the given name to the provided value. If no parameter is found, nothing happens, and the value is not set! Name of the shader parameter. New value for the parameter.

(string name, Vec4 value)

Source from the content-addressed store, hash-verified

376 /// <param name="name">Name of the shader parameter.</param>
377 /// <param name="value">New value for the parameter.</param>
378 public void SetVector(string name, Vec4 value)
379 => NativeAPI.material_set_vector4(_inst, name, value);
380
381 /// <summary>Sets a shader parameter with the given name to the
382 /// provided value. If no parameter is found, nothing happens, and

Callers 1

InitMethod · 0.80

Calls 3

material_set_vector4Method · 0.80
material_set_vector3Method · 0.80
material_set_vector2Method · 0.80

Tested by

no test coverage detected