mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
28 lines
992 B
Bash
28 lines
992 B
Bash
/*
|
|
* Copyright 2016 Dario Manesku. All rights reserved.
|
|
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
|
|
*/
|
|
|
|
uniform vec4 u_params[12];
|
|
#define u_mtx0 u_params[0]
|
|
#define u_mtx1 u_params[1]
|
|
#define u_mtx2 u_params[2]
|
|
#define u_mtx3 u_params[3]
|
|
#define u_glossiness u_params[4].x
|
|
#define u_reflectivity u_params[4].y
|
|
#define u_exposure u_params[4].z
|
|
#define u_bgType u_params[4].w
|
|
#define u_metalOrSpec u_params[5].x
|
|
#define u_unused u_params[5].yzw
|
|
#define u_doDiffuse u_params[6].x
|
|
#define u_doSpecular u_params[6].y
|
|
#define u_doDiffuseIbl u_params[6].z
|
|
#define u_doSpecularIbl u_params[6].w
|
|
#define u_camPos u_params[7].xyz
|
|
#define u_unused7 u_params[7].w
|
|
#define u_rgbDiff u_params[8]
|
|
#define u_rgbSpec u_params[9]
|
|
#define u_lightDir u_params[10].xyz
|
|
#define u_unused10 u_params[10].w
|
|
#define u_lightCol u_params[11].xyz
|
|
#define u_unused11 u_params[11].w
|