mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-12 09:32:42 +00:00
Update shaders_julia_set.c
This commit is contained in:
@@ -42,7 +42,7 @@ int main(void)
|
|||||||
const int screenWidth = 800;
|
const int screenWidth = 800;
|
||||||
const int screenHeight = 450;
|
const int screenHeight = 450;
|
||||||
|
|
||||||
SetConfigFlags(FLAG_WINDOW_HIGHDPI);
|
//SetConfigFlags(FLAG_WINDOW_HIGHDPI);
|
||||||
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - julia sets");
|
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - julia sets");
|
||||||
|
|
||||||
// Load julia set shader
|
// Load julia set shader
|
||||||
@@ -165,7 +165,7 @@ int main(void)
|
|||||||
BeginShaderMode(shader);
|
BeginShaderMode(shader);
|
||||||
// WARNING: If FLAG_WINDOW_HIGHDPI is enabled, HighDPI monitor scaling should be considered
|
// WARNING: If FLAG_WINDOW_HIGHDPI is enabled, HighDPI monitor scaling should be considered
|
||||||
// when rendering the RenderTexture2D to fit in the HighDPI scaled Window
|
// when rendering the RenderTexture2D to fit in the HighDPI scaled Window
|
||||||
DrawTextureEx(target.texture, (Vector2){ 0.0f, 0.0f }, 0.0f, GetWindowScaleDPI().x, WHITE);
|
DrawTextureEx(target.texture, (Vector2){ 0.0f, 0.0f }, 0.0f, 1.0f, WHITE);
|
||||||
EndShaderMode();
|
EndShaderMode();
|
||||||
|
|
||||||
if (showControls)
|
if (showControls)
|
||||||
|
|||||||
Reference in New Issue
Block a user