文档

Unity Engine

Unity Engine

SetRenderStateData(Shader, PassIdentifier)

Sets the render state fields in this graphics state according to the provided shader and pass identifier.
阅读时间1 分钟最后更新于 1 个月前

Definition

public void SetRenderStateData(Shader shader, PassIdentifier passId)

Parameters

shader

Shader to use to set the GraphicsStateCollection.GraphicsState.renderState data from.

PassIdentifier to use to set the GraphicsStateCollection.GraphicsState.renderState data from.