-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Traktor: Clouds are rendered to a unwrapped texture and temporarily f…
…iltered.
- Loading branch information
Showing
16 changed files
with
1,327 additions
and
179 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<object type="traktor.render.ShaderModule"> | ||
<text> | ||
<![CDATA[ | ||
#define PI 3.142f | ||
#define TWO_PI (PI * 2.0f) | ||
#define HALF_PI (PI / 2.0f) | ||
vec3 TexCoordToDirection(in vec2 texCoord) | ||
{ | ||
float theta = texCoord.x * TWO_PI; | ||
float radius = texCoord.y; // cos(texCoord.y * HALF_PI); | ||
return vec3( | ||
cos(theta) * radius, | ||
1.0f - radius, | ||
sin(theta) * radius | ||
); | ||
} | ||
vec2 DirectionToTexCoord(in vec3 direction) | ||
{ | ||
float phi = direction.y; // acos(direction.y) / HALF_PI; | ||
float theta = atan(direction.z, direction.x) / TWO_PI + 0.5f; | ||
return vec2( theta, 1 - phi); | ||
} | ||
]]> | ||
</text> | ||
</object> |
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,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<object type="traktor.db.LocalInstanceMeta" version="2"> | ||
<guid>{055423F4-A0F5-4840-8020-D5C93F97F8E5}</guid> | ||
<primaryType>traktor.render.ShaderModule</primaryType> | ||
<blobs/> | ||
</object> |
Oops, something went wrong.