Exemple #1
0
 public void UpdateRenderData()
 {
     RenderData = new InstanceRenderData
     {
         ModelMatrix  = CFrame.GetModelMatrix(),
         Size         = Size,
         Colour       = Colour,
         Transparency = Transparency
     };
     _renderObject.UpdateInstance(this);
 }
Exemple #2
0
            public void UpdateRenderData()
            {
                RenderData = new InstanceRenderData
                {
                    Colour       = Colour,
                    Emissive     = 0,
                    ShadingModel = ShadingModel.Unlit,
                    Size         = Size,
                    ModelMatrix  = CFrame.GetModelMatrix(),
                    Transparency = Transparency
                };

                if (_isEnabled)
                {
                    _renderObject.UpdateInstance(this);
                }
            }