protected override void RefreshUniforms() { base.RefreshUniforms(); Program.SetUniformData("ambient", Renderer.GammaInput ? Ambient.GammaToLinear() : Ambient); Program.SetUniformData("emissive", Renderer.GammaInput ? Emissive.GammaToLinear() : Emissive); if (ShouldWrapAround) { Program.SetUniformData("wrapRGB", WrapRGB); } }
protected override void RefreshUniforms() { base.RefreshUniforms(); Program.SetUniformData("ambient", Renderer.GammaInput ? Ambient.GammaToLinear() : Ambient); Program.SetUniformData("emissive", Renderer.GammaInput ? Emissive.GammaToLinear() : Emissive); Program.SetUniformData("specular", Specular); Program.SetUniformData("shininess", Shininess); Program.SetUniformData("hardness", Hardness); Program.SetUniformData("normalScale", new Vector2(1, 1)); if (ShouldWrapAround) { Program.SetUniformData("wrapRGB", WrapRGB); } }