/
redgpu
/
bullet
Обзор
Документация
Войти
/
redgpu
/
bullet
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
examples/OpenGLWindow/Shaders/segmentationMaskInstancingPS.h
16 строк
549 B
Erwin Coumans
expose shadowmap intensity to PyBullet API
08 сен 2020, 02:52
08 сен 2020, 02:52
ccdec68
Код
Авторство
О чём код?
//this file is autogenerated using stringify.bat (premake --stringify) in the build folder of this project static const char* segmentationMaskInstancingFragmentShader= \ "#version 330\n" "precision highp float;\n" "in vec4 scale_obuid;\n" "out vec4 color;\n" "void main(void)\n" "{\n" " highp int obuid = int(scale_obuid.w);\n" " float r = ((obuid>>0 )&0xff)*(1./255.f);\n" " float g = ((obuid>>8 )&0xff)*(1./255.f);\n" " float b = ((obuid>>16)&0xff)*(1./255.f);\n" " float a = ((obuid>>24)&0xff)*(1./255.f);\n" " color = vec4(r,g,b,a);\n" "}\n" ;