-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add FILAMENT_ENABLE_FEATURE_LEVEL_0 option
This allows clients to selectively exclude feature level 0 support.
- Loading branch information
1 parent
5b2d3ac
commit 1b10e7d
Showing
9 changed files
with
150 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,3 @@ appropriate header in [RELEASE_NOTES.md](./RELEASE_NOTES.md). | |
|
||
## Release notes for next branch cut | ||
|
||
|
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,39 @@ | ||
material { | ||
name : blitLow, | ||
parameters : [ | ||
{ | ||
type : sampler2d, | ||
name : color, | ||
precision: medium | ||
}, | ||
{ | ||
type : float4, | ||
name : resolution, | ||
precision: high | ||
}, | ||
{ | ||
type : float4, | ||
name : viewport, | ||
precision: high | ||
} | ||
], | ||
variables : [ | ||
vertex | ||
], | ||
depthWrite : false, | ||
depthCulling : false, | ||
domain: postprocess, | ||
} | ||
|
||
vertex { | ||
void postProcessVertex(inout PostProcessVertexInputs postProcess) { | ||
postProcess.vertex.xy = materialParams.viewport.xy + postProcess.normalizedUV * materialParams.viewport.zw; | ||
postProcess.vertex.xy = uvToRenderTargetUV(postProcess.vertex.xy); | ||
} | ||
} | ||
|
||
fragment { | ||
void postProcess(inout PostProcessInputs postProcess) { | ||
postProcess.color = textureLod(materialParams_color, variable_vertex.xy, 0.0); | ||
} | ||
} |
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,28 @@ | ||
material { | ||
name : uiBlit, | ||
parameters : [ | ||
{ | ||
type : sampler2d, | ||
name : albedo | ||
} | ||
], | ||
requires : [ | ||
uv0, | ||
color | ||
], | ||
shadingModel : unlit, | ||
culling : none, | ||
depthCulling: false, | ||
blending : transparent, | ||
} | ||
|
||
fragment { | ||
void material(inout MaterialInputs material) { | ||
prepareMaterial(material); | ||
vec2 uv = getUV0(); | ||
uv.y = 1.0 - uv.y; | ||
vec4 albedo = texture(materialParams_albedo, uv); | ||
material.baseColor = getColor() * albedo; | ||
material.baseColor.rgb *= material.baseColor.a; | ||
} | ||
} |