mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Rebuilt shaders.
This commit is contained in:
@@ -8,17 +8,6 @@ $input v_view, v_bc, v_normal
|
||||
#include "../common/common.sh"
|
||||
#include "uniforms.sh"
|
||||
|
||||
const vec3 shEnv[9] = vec3[9](vec3( 0.967757057878229854, 0.976516067990363390, 0.891218272348969998) /* Band 0 */
|
||||
, vec3(-0.384163503608655643, -0.423492289131209787, -0.425532726148547868) /* Band 1 */
|
||||
, vec3( 0.055906294587354334, 0.056627436881069373, 0.069969936396987467)
|
||||
, vec3( 0.120985157386215209, 0.119297994074027414, 0.117111965829213599)
|
||||
, vec3(-0.176711633774331106, -0.170331404095516392, -0.151345020570876621) /* Band 2 */
|
||||
, vec3(-0.124682114349692147, -0.119340785411183953, -0.096300354204368860)
|
||||
, vec3( 0.001852378550138503, -0.032592784164597745, -0.088204495001329680)
|
||||
, vec3( 0.296365482782109446, 0.281268696656263029, 0.243328223888495510)
|
||||
, vec3(-0.079826665303240341, -0.109340956251195970, -0.157208859664677764)
|
||||
);
|
||||
|
||||
vec3 evalSh(vec3 _dir)
|
||||
{
|
||||
# define k01 0.2820947918 // sqrt( 1/PI)/2
|
||||
@@ -27,6 +16,17 @@ vec3 evalSh(vec3 _dir)
|
||||
# define k04 0.3153915652 // sqrt( 5/PI)/4
|
||||
# define k05 0.5462742153 // sqrt(15/PI)/4
|
||||
|
||||
vec3 shEnv[9];
|
||||
shEnv[0] = vec3( 0.967757057878229854, 0.976516067990363390, 0.891218272348969998); /* Band 0 */
|
||||
shEnv[1] = vec3(-0.384163503608655643, -0.423492289131209787, -0.425532726148547868); /* Band 1 */
|
||||
shEnv[2] = vec3( 0.055906294587354334, 0.056627436881069373, 0.069969936396987467);
|
||||
shEnv[3] = vec3( 0.120985157386215209, 0.119297994074027414, 0.117111965829213599);
|
||||
shEnv[4] = vec3(-0.176711633774331106, -0.170331404095516392, -0.151345020570876621); /* Band 2 */
|
||||
shEnv[5] = vec3(-0.124682114349692147, -0.119340785411183953, -0.096300354204368860);
|
||||
shEnv[6] = vec3( 0.001852378550138503, -0.032592784164597745, -0.088204495001329680);
|
||||
shEnv[7] = vec3( 0.296365482782109446, 0.281268696656263029, 0.243328223888495510);
|
||||
shEnv[8] = vec3(-0.079826665303240341, -0.109340956251195970, -0.157208859664677764);
|
||||
|
||||
vec3 nn = _dir.zxy;
|
||||
|
||||
float sh[9];
|
||||
|
||||
@@ -30,6 +30,7 @@ rebuild:
|
||||
# @make -s --no-print-directory rebuild -C 25-c99
|
||||
# @make -s --no-print-directory rebuild -C 26-occlusion
|
||||
@make -s --no-print-directory rebuild -C 27-terrain
|
||||
@make -s --no-print-directory rebuild -C 28-wireframe
|
||||
@make -s --no-print-directory rebuild -C common/font
|
||||
@make -s --no-print-directory rebuild -C common/imgui
|
||||
@make -s --no-print-directory rebuild -C common/nanovg
|
||||
@@ -54,3 +55,4 @@ metal:
|
||||
@make -s --no-print-directory TARGET=5 -C 23-vectordisplay
|
||||
@make -s --no-print-directory TARGET=5 -C 24-nbody
|
||||
@make -s --no-print-directory TARGET=5 -C 27-terrain
|
||||
@make -s --no-print-directory TARGET=5 -C 28-wireframe
|
||||
|
||||
Binary file not shown.
Binary file not shown.
BIN
examples/runtime/shaders/dx11/fs_wf_mesh.bin
Normal file
BIN
examples/runtime/shaders/dx11/fs_wf_mesh.bin
Normal file
Binary file not shown.
BIN
examples/runtime/shaders/dx11/fs_wf_wireframe.bin
Normal file
BIN
examples/runtime/shaders/dx11/fs_wf_wireframe.bin
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
examples/runtime/shaders/dx11/vs_wf_mesh.bin
Normal file
BIN
examples/runtime/shaders/dx11/vs_wf_mesh.bin
Normal file
Binary file not shown.
BIN
examples/runtime/shaders/dx11/vs_wf_wireframe.bin
Normal file
BIN
examples/runtime/shaders/dx11/vs_wf_wireframe.bin
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
examples/runtime/shaders/dx9/fs_wf_mesh.bin
Normal file
BIN
examples/runtime/shaders/dx9/fs_wf_mesh.bin
Normal file
Binary file not shown.
BIN
examples/runtime/shaders/dx9/fs_wf_wireframe.bin
Normal file
BIN
examples/runtime/shaders/dx9/fs_wf_wireframe.bin
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
examples/runtime/shaders/dx9/vs_wf_mesh.bin
Normal file
BIN
examples/runtime/shaders/dx9/vs_wf_mesh.bin
Normal file
Binary file not shown.
BIN
examples/runtime/shaders/dx9/vs_wf_wireframe.bin
Normal file
BIN
examples/runtime/shaders/dx9/vs_wf_wireframe.bin
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
examples/runtime/shaders/gles/fs_wf_mesh.bin
Normal file
BIN
examples/runtime/shaders/gles/fs_wf_mesh.bin
Normal file
Binary file not shown.
BIN
examples/runtime/shaders/gles/fs_wf_wireframe.bin
Normal file
BIN
examples/runtime/shaders/gles/fs_wf_wireframe.bin
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
examples/runtime/shaders/gles/vs_wf_mesh.bin
Normal file
BIN
examples/runtime/shaders/gles/vs_wf_mesh.bin
Normal file
Binary file not shown.
BIN
examples/runtime/shaders/gles/vs_wf_wireframe.bin
Normal file
BIN
examples/runtime/shaders/gles/vs_wf_wireframe.bin
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user