generated from nathanfranke/gdextension
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add decal inserts modify editor inserts
- Loading branch information
Showing
10 changed files
with
135 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright © 2024 Cory Petkovsek, Roope Palmroos, and Contributors. | ||
|
||
R"( | ||
|
||
//INSERT: COMPATIBILITY_DEFINES | ||
// Compatibility overrides | ||
#define fma(a, b, c) (a) * (b) + (c) | ||
#define dFdxCoarse(a) dFdx(a) | ||
#define dFdyCoarse(a) dFdy(a) | ||
#define textureQueryLod(a, b) vec4(0.0) | ||
#define texelOffset(b, c) ivec3(ivec2(b.xy * _region_size + c -0.4979), int(b.z)) | ||
#define textureGather(a, b) vec4( \ | ||
texelFetch(a, texelOffset(b, vec2(0,1)), 0).r, \ | ||
texelFetch(a, texelOffset(b, vec2(1,1)), 0).r, \ | ||
texelFetch(a, texelOffset(b, vec2(1,0)), 0).r, \ | ||
texelFetch(a, texelOffset(b, vec2(0,0)), 0).r \ | ||
) | ||
|
||
)" |
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