public void ApplyGlobalContants() { CameraConstant.Set(Camera); BillboardTransformConstant.Set(BillboardTransform); DiffuseConstant.Set(Diffuse); ColorPalletConstant.Set(ColorPallet); ScalePalletConstant.Set(ScalePallet); }
public void Apply(InstanceObjectMesh instanceObjectMesh) { CameraConstant.Set(Camera); BillboardTransformConstant.Set(BillboardTransform); DiffuseConstant.Set(Diffuse); ColorPalletConstant.Set(ColorPallet); ScalePalletConstant.Set(ScalePallet); ApplyInstanceContants(instanceObjectMesh); TransformsConstant.Set(Transforms); Shader.Apply(); }