forked from LeenkxTeam/LNXSDK
Update leenkx/Shaders/std/constants.glsl
This commit is contained in:
@ -1,16 +1,13 @@
|
||||
/*
|
||||
Copyright (c) 2024 Turánszki János
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
@ -21,28 +18,32 @@ THE SOFTWARE.
|
||||
*/
|
||||
|
||||
const int DIFFUSE_CONE_COUNT = 16;
|
||||
const float DIFFUSE_CONE_APERTURE = radians(45.0);
|
||||
|
||||
const float SHADOW_CONE_APERTURE = radians(15.0);
|
||||
|
||||
const float DIFFUSE_CONE_APERTURE = 0.872665;
|
||||
|
||||
const vec3 DIFFUSE_CONE_DIRECTIONS[16] = {
|
||||
vec3(0.0000, 0.0000, 1.0000), // Central direction
|
||||
vec3(0.3827, 0.0000, 0.9239), // Ring 1
|
||||
vec3(-0.3827, 0.0000, 0.9239),
|
||||
vec3(0.0000, 0.3827, 0.9239),
|
||||
vec3(0.0000, -0.3827, 0.9239),
|
||||
vec3(0.2706, 0.2706, 0.9239), // Ring 2
|
||||
vec3(-0.2706, 0.2706, 0.9239),
|
||||
vec3(0.2706, -0.2706, 0.9239),
|
||||
vec3(-0.2706, -0.2706, 0.9239),
|
||||
vec3(0.1802, 0.3604, 0.9239), // Ring 3
|
||||
vec3(-0.1802, 0.3604, 0.9239),
|
||||
vec3(0.1802, -0.3604, 0.9239),
|
||||
vec3(-0.1802, -0.3604, 0.9239),
|
||||
vec3(0.3604, 0.1802, 0.9239),
|
||||
vec3(-0.3604, 0.1802, 0.9239),
|
||||
vec3(0.3604, -0.1802, 0.9239)
|
||||
vec3( 0.000000, 0.000000, 1.000000),
|
||||
vec3( 0.525731, 0.000000, 0.850651),
|
||||
vec3(-0.525731, 0.000000, 0.850651),
|
||||
vec3( 0.000000, 0.525731, 0.850651),
|
||||
vec3( 0.000000, -0.525731, 0.850651),
|
||||
vec3( 0.309017, 0.809017, 0.500000),
|
||||
vec3(-0.309017, 0.809017, 0.500000),
|
||||
vec3( 0.309017, -0.809017, 0.500000),
|
||||
vec3(-0.309017, -0.809017, 0.500000),
|
||||
vec3( 0.809017, 0.309017, 0.500000),
|
||||
vec3( 0.809017, -0.309017, 0.500000),
|
||||
vec3(-0.809017, 0.309017, 0.500000),
|
||||
vec3(-0.809017, -0.309017, 0.500000),
|
||||
vec3( 0.000000, 0.000000, -1.000000),
|
||||
vec3( 0.525731, 0.000000, -0.850651),
|
||||
vec3(-0.525731, 0.000000, -0.850651)
|
||||
};
|
||||
|
||||
|
||||
|
||||
const float BayerMatrix8[8][8] =
|
||||
{
|
||||
{ 1.0 / 65.0, 49.0 / 65.0, 13.0 / 65.0, 61.0 / 65.0, 4.0 / 65.0, 52.0 / 65.0, 16.0 / 65.0, 64.0 / 65.0 },
|
||||
|
Reference in New Issue
Block a user