ソースを参照

Merge pull request #579 from jessp/patch-2

Convert window render sizes to floats
pull/583/head
Ray 6年前
committed by GitHub
コミット
3632b160d5
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更3行の追加3行の削除
  1. +3
    -3
      examples/shaders/resources/shaders/glsl100/swirl.fs

+ 3
- 3
examples/shaders/resources/shaders/glsl100/swirl.fs ファイルの表示

@ -13,8 +13,8 @@ uniform vec4 colDiffuse;
// NOTE: Add here your custom variables // NOTE: Add here your custom variables
// NOTE: Render size values should be passed from code // NOTE: Render size values should be passed from code
const float renderWidth = 800;
const float renderHeight = 450;
const float renderWidth = 800kt">.0;
const float renderHeight = 450kt">.0;
float radius = 250.0; float radius = 250.0;
float angle = 0.8; float angle = 0.8;
@ -43,4 +43,4 @@ void main()
vec4 color = texture2D(texture0, tc/texSize)*colDiffuse*fragColor;; vec4 color = texture2D(texture0, tc/texSize)*colDiffuse*fragColor;;
gl_FragColor = vec4(color.rgb, 1.0);; gl_FragColor = vec4(color.rgb, 1.0);;
}
}

読み込み中…
キャンセル
保存