Edytuj

Udostępnij za pośrednictwem


MDLMesh.GenerateLightMapTexture Method

Definition

Overloads

GenerateLightMapTexture(Vector2i, MDLLight[], MDLObject[], String, String)
GenerateLightMapTexture(Single, MDLLight[], MDLObject[], String, String)

Generates a map that represents the computed result of shading from the specified lights, obstructed by the specified objects.

GenerateLightMapTexture(Vector2i, MDLLight[], MDLObject[], String, String)

[Foundation.Export("generateLightMapTextureWithTextureSize:lightsToConsider:objectsToConsider:vertexAttributeNamed:materialPropertyNamed:")]
public virtual bool GenerateLightMapTexture (OpenTK.Vector2i textureSize, ModelIO.MDLLight[] lightsToConsider, ModelIO.MDLObject[] objectsToConsider, string vertexAttributeName, string materialPropertyName);
abstract member GenerateLightMapTexture : OpenTK.Vector2i * ModelIO.MDLLight[] * ModelIO.MDLObject[] * string * string -> bool
override this.GenerateLightMapTexture : OpenTK.Vector2i * ModelIO.MDLLight[] * ModelIO.MDLObject[] * string * string -> bool

Parameters

textureSize
Vector2i
lightsToConsider
MDLLight[]
objectsToConsider
MDLObject[]
vertexAttributeName
String
materialPropertyName
String

Returns

Attributes

Applies to

GenerateLightMapTexture(Single, MDLLight[], MDLObject[], String, String)

Generates a map that represents the computed result of shading from the specified lights, obstructed by the specified objects.

[Foundation.Export("generateLightMapTextureWithQuality:lightsToConsider:objectsToConsider:vertexAttributeNamed:materialPropertyNamed:")]
public virtual bool GenerateLightMapTexture (float bakeQuality, ModelIO.MDLLight[] lightsToConsider, ModelIO.MDLObject[] objectsToConsider, string vertexAttributeName, string materialPropertyName);
abstract member GenerateLightMapTexture : single * ModelIO.MDLLight[] * ModelIO.MDLObject[] * string * string -> bool
override this.GenerateLightMapTexture : single * ModelIO.MDLLight[] * ModelIO.MDLObject[] * string * string -> bool

Parameters

bakeQuality
Single
lightsToConsider
MDLLight[]
objectsToConsider
MDLObject[]
vertexAttributeName
String
materialPropertyName
String

Returns

Attributes

Applies to