public override void Render() { PreRender(); quad.render(); if ((bool)Modifiers["showNormal"]) { normalArrow.render(); } PostRender(); }
public override void render(float elapsedTime) { Device d3dDevice = GuiController.Instance.D3dDevice; bool showNormal = (bool)GuiController.Instance.Modifiers["showNormal"]; //Actualizar parametros de la caja updateQuad(showNormal); quad.render(); if (showNormal) { normalArrow.render(); } }
public void Play(Single deltaTime) { _GraphsConfig(); _LvlHack(); var level = _Levels[_LevelIndex]; if (level == null) { _BlackQuad.render(); _LoadSign.Render(); _LoadWord.Render(); for (int i = 0; i < 6; i++) { _LoadingAnimations[i].Update(deltaTime); _LoadingAnimations[i].Render(); } return; } var input = GuiController.Instance.D3dInput; if (level.IsComplete) { if (input.keyDown(Key.R)) { level.RollBack(); } else if (input.keyDown(Key.Return)) { _SetLevel(_NextIndex); } } else { level.Play(deltaTime); } level.SetCamera(); _LightShader.SetValue("lightPosition", TgcParserUtils.vector3ToFloat4Array(level.LightPosition)); _LightShader.SetValue("lightIntensity", level.LightIntensity); _LightShader.SetValue("materialAmbientColor", ColorValue.FromColor(Color.White)); _LightShader.SetValue("materialDiffuseColor", ColorValue.FromColor(Color.White)); _LightShader.SetValue("materialSpecularColor", ColorValue.FromColor(Color.White)); level.Render(IsToonShaderEnabled ? _ToonShader : _LightShader); //level.Render(_ToonShader); //level.Render(_LightShader); }
public override void Render() { PreRender(); var showNormal = (bool)Modifiers["showNormal"]; //Actualizar parametros de la caja updateQuad(showNormal); quad.render(); if (showNormal) { normalArrow.render(); } PostRender(); }