УЕЗХЩОЦ;КЕ(ЦК;_ХПРХЦЗКТП_+КЦ(РТПХ+)КЫПШ

This commit is contained in:
DepressedTWM 2026-08-05 17:51:33 +04:00
parent 01927fa996
commit ee332bce1d
3 changed files with 27 additions and 6 deletions

View file

@ -7,7 +7,6 @@
* блинчек * блинчек
## Artists ## Artists
* Issac332 * Issac332
* Creature_of_steel1 * Creature_of_steel1
* DesMo * DesMo
@ -20,7 +19,7 @@
## Testers and helpers: ## Testers and helpers:
* Rubik * Rubik
* Prime 223432 * Prime 223432
* Алула(from Oneshot) * Alula(from Oneshot)
* Охотник * Охотник
* Ouzly * Ouzly

View file

@ -10,6 +10,5 @@ varying vec2 v_texCoord;
void main(){ void main(){
vec4 newPixel = texture2D(currentScene, v_texCoord); vec4 newPixel = texture2D(currentScene, v_texCoord);
vec4 oldPixel = texture2D(frozenScene, v_texCoord); vec4 oldPixel = texture2D(frozenScene, v_texCoord);
gl_FragColor = mix(oldPixel, newPixel, prog); gl_FragColor = mix(oldPixel, newPixel, prog);
} }

View file

@ -1,8 +1,12 @@
#!/bin/bash #!/bin/bash
#
# ПЕРЕПИСАТЬ ЭТУ ХУЙНЮ ОНА НЕ РАБОТАЕТ
#
set -euo pipefail set -euo pipefail
FASTERER_PATH="$1" FASTERER_PATH="$1"
check_file() { check_c(){
local f="$1" local f="$1"
case "$f" in case "$f" in
@ -22,12 +26,31 @@ check_file() {
;; ;;
esac esac
} }
export -f check_file
check_shader(){
local f="$1"
case "$f" in
*.vert)
#glslangValidator -S vert --target-env opengl --client opengl100 -t "$f"
;;
*.frag)
glslangValidator -S frag --target-env opengl --client opengl100 -t -DGLSLES -DFRAGMENT_SHADER "$f"
;;
esac
}
export -f check_c
export -f check_shader
find . -type f \( \ find . -type f \( \
-name '*.c' -o -name '*.cc' -o -name '*.cpp' -o -name '*.cxx' \ -name '*.c' -o -name '*.cc' -o -name '*.cpp' -o -name '*.cxx' \
-o -name '*.h' -o -name '*.hh' -o -name '*.hpp' -o -name '*.hxx' \ -o -name '*.h' -o -name '*.hh' -o -name '*.hpp' -o -name '*.hxx' \
\) -print0 \ \) -print0 \
| xargs -0 -n 1 bash -c 'check_file "$1"' _ | xargs -0 -n 1 bash -c 'check_c "$1"' _
find . -type f \( \
-name '*.frag' -o -name '*.vert' \
\) -print0 \
| xargs -0 -n 1 bash -c 'check_shader "$1"' _
find . | grep .rb | $FASTERER_PATH find . | grep .rb | $FASTERER_PATH
glslangValidator