-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7051c01
commit 60b8bd0
Showing
27 changed files
with
15,879 additions
and
120 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
Binary file not shown.
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,42 @@ | ||
#include "Common_i.hlsl" | ||
|
||
|
||
Texture2D equirectangularTex : register(t0); | ||
RWTexture2DArray<float> cubemap : register(u0); | ||
|
||
SamplerState equirectSampler : register(s0); | ||
|
||
float3 GetCubeMapTexCoord(uint3 DTid) | ||
{ | ||
float width; | ||
float height; | ||
float elements; | ||
cubemap.GetDimensions(width, height, elements); | ||
|
||
float2 st = DTid.xy / float2(width, height); | ||
float2 uv = 2.0 * float2(st.x, 1.0 - st.y) - float2(1.0, 1.0); | ||
|
||
float3 ret; | ||
if (DTid.z == 0) ret = float3(1.0, uv.y, -uv.x); | ||
else if (DTid.z == 1) ret = float3(-1.0, uv.y, uv.x); | ||
else if (DTid.z == 2) ret = float3(uv.x, 1.0, -uv.y); | ||
else if (DTid.z == 3) ret = float3(uv.x, -1.0, uv.y); | ||
else if (DTid.z == 4) ret = float3(uv.x, uv.y, 1.0); | ||
else if (DTid.z == 5) ret = float3(-uv.x, uv.y, -1.0); | ||
return normalize(ret); | ||
} | ||
|
||
[numthreads(32, 32, 1)] | ||
void main( uint3 DTid : SV_DispatchThreadID ) | ||
{ | ||
float3 cubeTC = GetCubeMapTexCoord(DTid); | ||
|
||
// Calculate sampling coords for equirectangular texture | ||
// https://en.wikipedia.org/wiki/Spherical_coordinate_system#Cartesian_coordinates | ||
float phi = atan2(cubeTC.z, cubeTC.x); | ||
float theta = acos(cubeTC.y); | ||
float2 uv = float2(phi / (2.0 * Pi) + 0.5, theta / Pi); | ||
|
||
float4 color = { 0.0, 0.0, 0.0, 0.0 }; | ||
cubemap[DTid] = 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
15,472 changes: 15,472 additions & 0 deletions
15,472
Engine/Assets/Textures/GrandCanyon_C_YumaPoint/GCanyon_C_YumaPoint_3k.hdr
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+7.48 MB
Engine/Assets/Textures/GrandCanyon_C_YumaPoint/GCanyon_C_YumaPoint_8k.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions
33
Engine/Assets/Textures/GrandCanyon_C_YumaPoint/GCanyon_C_YumaPoint_Env.hdr
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+15.2 KB
Engine/Assets/Textures/GrandCanyon_C_YumaPoint/GCanyon_C_YumaPoint_Thumb.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+152 KB
Engine/Assets/Textures/GrandCanyon_C_YumaPoint/GCanyon_C_YumaPoint_preview.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 46 additions & 0 deletions
46
Engine/Assets/Textures/GrandCanyon_C_YumaPoint/GrandCanyon_C_YumaPoint.ibl
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,46 @@ | ||
[Header] | ||
ICOfile = "GCanyon_C_YumaPoint_Thumb.jpg" | ||
PREVIEWfile = "GCanyon_C_YumaPoint_preview.jpg" | ||
Name = "Grand Canyon C" | ||
Author = "Blochi" | ||
Location = "Grand Canyon" | ||
Comment = "Bright daylight, high altitude, great for airplane renders" | ||
GEOlat = 36.08038998435272 | ||
GEOlong = -112.22920417785645 | ||
Link = "http://www.hdrlabs.com/sibl/archive.html" | ||
Date = "2008:11:28" | ||
Time = "12:55:00" | ||
Height = 100 | ||
North = 0.41 | ||
|
||
[Background] | ||
BGfile = "GCanyon_C_YumaPoint_8k.jpg" | ||
BGmap = 1 | ||
BGu = 0.000000 | ||
BGv = 0.000000 | ||
BGheight = 4000 | ||
|
||
[Enviroment] | ||
EVfile = "GCanyon_C_YumaPoint_Env.hdr" | ||
EVmap = 1 | ||
EVu = 0.000000 | ||
EVv = 0.000000 | ||
EVheight = 180 | ||
EVmulti = 1.000000 | ||
EVgamma = 1.600000 | ||
|
||
[Reflection] | ||
REFfile = "GCanyon_C_YumaPoint_3k.hdr" | ||
REFmap = 1 | ||
REFu = 0.000000 | ||
REFv = 0.000000 | ||
REFheight = 1600 | ||
REFmulti = 1.000000 | ||
REFgamma = 1.600000 | ||
|
||
[Sun] | ||
SUNcolor = 250,247,235 | ||
SUNmulti = 1.000000 | ||
SUNu = 0.824000 | ||
SUNv = 0.376000 | ||
|
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.