Click or drag to resize
AB4D logo

SuperInstancedShaderSetMaterialConstantBuffer Method

Sets constant buffers based on the specified Material and other properties.

Namespace: Ab3d.DirectX.Shaders
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
public void SetMaterialConstantBuffer(
	Material material,
	RenderablePrimitiveBase renderablePrimitive,
	bool useInstanceObjectColor,
	bool hasAlphaBlend
)

Parameters

material  Material
Material
renderablePrimitive  RenderablePrimitiveBase
RenderablePrimitiveBase
useInstanceObjectColor  Boolean
if true (by default) then color defined in instance buffer is used; if false color defined in IDiffuseMaterial is used
hasAlphaBlend  Boolean
true if the material has transparency
See Also