Kaynağa Gözat

REVIEWED: Example `shaders_normalmap` #5032

pull/5096/head
Ray 3 ay önce
ebeveyn
işleme
2365ac8def
2 değiştirilmiş dosya ile 5 ekleme ve 5 silme
  1. +5
    -5
      examples/shaders/shaders_normalmap.c
  2. BIN
      examples/shaders/shaders_normalmap.png

+ 5
- 5
examples/shaders/shaders_normalmap.c Dosyayı Görüntüle

@ -148,14 +148,14 @@ int main(void)
Color textColor = (useNormalMap) ? DARKGREEN : RED;
const char *toggleStr = (useNormalMap) ? "On" : "Off";
DrawText(TextFormat("Use key [N] to toggle normal map: %s", toggleStr), 10, 30, 10, textColor);
DrawText(TextFormat("Use key [N] to toggle normal map: %s", toggleStr), 10, 10, 10, textColor);
int yOffset = 24;
DrawText("Use keys [W][A][S][D] to move the light", 10, 30 + yOffset*1, 10, BLACK);
DrawText("Use keys [Up][Down] to change specular exponent", 10, 30 + yOffset*2, 10, BLACK);
DrawText(TextFormat("Specular Exponent: %.2f", specularExponent), 10, 30 + yOffset*3, 10, BLUE);
DrawText("Use keys [W][A][S][D] to move the light", 10, 10 + yOffset*1, 10, BLACK);
DrawText("Use keys [Up][Down] to change specular exponent", 10, 10 + yOffset*2, 10, BLACK);
DrawText(TextFormat("Specular Exponent: %.2f", specularExponent), 10, 10 + yOffset*3, 10, BLUE);
DrawFPS(mi">10, 10);
DrawFPS(n">screenWidth - 80, 10);
EndDrawing();
//--------------------------------------------------------------------------------------

BIN
examples/shaders/shaders_normalmap.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 800  |  Yükseklik: 450  |  Boyut: 262 KiB Genişlik: 800  |  Yükseklik: 450  |  Boyut: 373 KiB

Yükleniyor…
İptal
Kaydet