-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/2024.12-ForeverFPS' into geenz/negative-fresnel…
…-fix
- Loading branch information
Showing
35 changed files
with
559 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
indra/newview/app_settings/shaders/class1/objects/simpleColorF.glsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/** | ||
* @file simpleColorF.glsl | ||
* | ||
* $LicenseInfo:firstyear=2025&license=viewerlgpl$ | ||
* Second Life Viewer Source Code | ||
* Copyright (C) 2007, Linden Research, Inc. | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; | ||
* version 2.1 of the License only. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with this library; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
* | ||
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA | ||
* $/LicenseInfo$ | ||
*/ | ||
|
||
out vec4 frag_color; | ||
|
||
in vec4 vertex_color; | ||
in vec4 vertex_position; | ||
|
||
uniform vec4 waterPlane; | ||
uniform float waterSign; | ||
|
||
void waterClip(vec3 pos) | ||
{ | ||
// TODO: make this less branchy | ||
if (waterSign > 0) | ||
{ | ||
if ((dot(pos.xyz, waterPlane.xyz) + waterPlane.w) < 0.0) | ||
{ | ||
discard; | ||
} | ||
} | ||
else | ||
{ | ||
if ((dot(pos.xyz, waterPlane.xyz) + waterPlane.w) > 0.0) | ||
{ | ||
discard; | ||
} | ||
} | ||
} | ||
|
||
void main() | ||
{ | ||
|
||
frag_color = vertex_color; | ||
} |
43 changes: 43 additions & 0 deletions
43
indra/newview/app_settings/shaders/class1/objects/simpleNoAtmosV.glsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/** | ||
* @file simpleNoAtmosV.glsl | ||
* | ||
* $LicenseInfo:firstyear=2007&license=viewerlgpl$ | ||
* Second Life Viewer Source Code | ||
* Copyright (C) 2007, Linden Research, Inc. | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; | ||
* version 2.1 of the License only. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with this library; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
* | ||
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA | ||
* $/LicenseInfo$ | ||
*/ | ||
|
||
uniform mat4 modelview_matrix; | ||
uniform mat4 modelview_projection_matrix; | ||
|
||
uniform vec4 color; | ||
|
||
in vec3 position; | ||
|
||
out vec4 vertex_color; | ||
out vec4 vertex_position; | ||
|
||
void main() | ||
{ | ||
//transform vertex | ||
vec4 pos = (modelview_matrix * vec4(position.xyz, 1.0)); | ||
vertex_position = modelview_projection_matrix * vec4(position.xyz, 1.0); | ||
gl_Position = vertex_position; | ||
vertex_color = color; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.