Skip to content

Commit

Permalink
Universal/fix gles30 shadergraph (#108)
Browse files Browse the repository at this point in the history
* Fix OpenGL ES 3.0 ShaderGraph support

https://github.com/Unity-Technologies/ScriptableRenderPipeline/pull/5963 broke OpenGL ES 3.0 ShaderGraphs
(case 1230890)

* Update changelog

Co-authored-by: Florian Penzkofer <florian@unity3d.com>
  • Loading branch information
hkr and hkr committed Apr 21, 2020
1 parent 23d4f7e commit 0dbed20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions com.unity.render-pipelines.universal/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Fixed shader compilation errors when using multiple lights in DX10 level GPU. [case 1222302](https://issuetracker.unity3d.com/issues/urp-no-materials-apart-from-ui-are-rendered-when-using-direct3d11-graphics-api-on-a-dx10-gpu)
- Fixed an issue with shadows not being correctly calculated in some shaders.
- Fixed invalid implementation of one function in LWRP -> URP backward compatibility support.
- Fixed OpenGL ES 3.0 support for URP ShaderGraph. [case 1230890](https://issuetracker.unity3d.com/issues/urptemplate-gles3-android-custom-shader-fails-to-compile-on-adreno-306-gpu)

## [7.1.1] - 2019-09-05
### Upgrade Guide
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ static class CorePragmas
public static readonly PragmaCollection Default = new PragmaCollection
{
{ Pragma.Target(ShaderModel.Target20) },
{ Pragma.OnlyRenderers(new[]{ Platform.GLES }) },
{ Pragma.OnlyRenderers(new[]{ Platform.GLES, Platform.GLES3 }) },
{ Pragma.PreferHlslCC(new[]{ Platform.GLES }) },
{ Pragma.Vertex("vert") },
{ Pragma.Fragment("frag") },
Expand All @@ -235,7 +235,7 @@ static class CorePragmas
public static readonly PragmaCollection Instanced = new PragmaCollection
{
{ Pragma.Target(ShaderModel.Target20) },
{ Pragma.OnlyRenderers(new[]{ Platform.GLES }) },
{ Pragma.OnlyRenderers(new[]{ Platform.GLES, Platform.GLES3 }) },
{ Pragma.MultiCompileInstancing },
{ Pragma.PreferHlslCC(new[]{ Platform.GLES }) },
{ Pragma.Vertex("vert") },
Expand All @@ -245,7 +245,7 @@ static class CorePragmas
public static readonly PragmaCollection Forward = new PragmaCollection
{
{ Pragma.Target(ShaderModel.Target20) },
{ Pragma.OnlyRenderers(new[]{ Platform.GLES }) },
{ Pragma.OnlyRenderers(new[]{ Platform.GLES, Platform.GLES3 }) },
{ Pragma.MultiCompileInstancing },
{ Pragma.MultiCompileFog },
{ Pragma.PreferHlslCC(new[]{ Platform.GLES }) },
Expand Down

0 comments on commit 0dbed20

Please sign in to comment.