-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add portals/midtextures to ray-traced dynamic lights
- Loading branch information
1 parent
f0effac
commit 728b6c0
Showing
15 changed files
with
168 additions
and
178 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
73 changes: 73 additions & 0 deletions
73
wadsrc/static/shaders/lightmap/binding_struct_definitions.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,73 @@ | ||
|
||
struct SurfaceInfo | ||
{ | ||
vec3 Normal; | ||
float Sky; | ||
uint PortalIndex; | ||
int TextureIndex; | ||
float Alpha; | ||
float Padding0; | ||
uint LightStart; | ||
uint LightEnd; | ||
uint Padding1; | ||
uint Padding2; | ||
}; | ||
|
||
struct PortalInfo | ||
{ | ||
mat4 Transformation; | ||
}; | ||
|
||
struct LightInfo | ||
{ | ||
vec3 Origin; | ||
float Padding0; | ||
vec3 RelativeOrigin; | ||
float Padding1; | ||
float Radius; | ||
float Intensity; | ||
float InnerAngleCos; | ||
float OuterAngleCos; | ||
vec3 SpotDir; | ||
float SoftShadowRadius; | ||
vec3 Color; | ||
float Padding3; | ||
}; | ||
|
||
struct CollisionNode | ||
{ | ||
vec3 center; | ||
float padding1; | ||
vec3 extents; | ||
float padding2; | ||
int left; | ||
int right; | ||
int element_index; | ||
int padding3; | ||
}; | ||
|
||
struct SurfaceVertex // Note: this must always match the FFlatVertex struct | ||
{ | ||
vec3 pos; | ||
float lindex; | ||
vec2 uv; | ||
vec2 luv; | ||
}; | ||
|
||
struct LightmapRaytracePC | ||
{ | ||
int SurfaceIndex; | ||
int Padding0; | ||
int Padding1; | ||
int Padding2; | ||
vec3 WorldToLocal; | ||
float TextureSize; | ||
vec3 ProjLocalToU; | ||
float Padding3; | ||
vec3 ProjLocalToV; | ||
float Padding4; | ||
float TileX; | ||
float TileY; | ||
float TileWidth; | ||
float TileHeight; | ||
}; |
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.