Skip to content

Commit 0dbed20

Browse files
authored
Universal/fix gles30 shadergraph (#108)
* Fix OpenGL ES 3.0 ShaderGraph support Unity-Technologies/ScriptableRenderPipeline#5963 broke OpenGL ES 3.0 ShaderGraphs (case 1230890) * Update changelog Co-authored-by: Florian Penzkofer <florian@unity3d.com>
1 parent 23d4f7e commit 0dbed20

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

com.unity.render-pipelines.universal/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
168168
- 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)
169169
- Fixed an issue with shadows not being correctly calculated in some shaders.
170170
- Fixed invalid implementation of one function in LWRP -> URP backward compatibility support.
171+
- 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)
171172

172173
## [7.1.1] - 2019-09-05
173174
### Upgrade Guide

com.unity.render-pipelines.universal/Editor/ShaderGraph/Targets/UniversalTarget.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ static class CorePragmas
226226
public static readonly PragmaCollection Default = new PragmaCollection
227227
{
228228
{ Pragma.Target(ShaderModel.Target20) },
229-
{ Pragma.OnlyRenderers(new[]{ Platform.GLES }) },
229+
{ Pragma.OnlyRenderers(new[]{ Platform.GLES, Platform.GLES3 }) },
230230
{ Pragma.PreferHlslCC(new[]{ Platform.GLES }) },
231231
{ Pragma.Vertex("vert") },
232232
{ Pragma.Fragment("frag") },
@@ -235,7 +235,7 @@ static class CorePragmas
235235
public static readonly PragmaCollection Instanced = new PragmaCollection
236236
{
237237
{ Pragma.Target(ShaderModel.Target20) },
238-
{ Pragma.OnlyRenderers(new[]{ Platform.GLES }) },
238+
{ Pragma.OnlyRenderers(new[]{ Platform.GLES, Platform.GLES3 }) },
239239
{ Pragma.MultiCompileInstancing },
240240
{ Pragma.PreferHlslCC(new[]{ Platform.GLES }) },
241241
{ Pragma.Vertex("vert") },
@@ -245,7 +245,7 @@ static class CorePragmas
245245
public static readonly PragmaCollection Forward = new PragmaCollection
246246
{
247247
{ Pragma.Target(ShaderModel.Target20) },
248-
{ Pragma.OnlyRenderers(new[]{ Platform.GLES }) },
248+
{ Pragma.OnlyRenderers(new[]{ Platform.GLES, Platform.GLES3 }) },
249249
{ Pragma.MultiCompileInstancing },
250250
{ Pragma.MultiCompileFog },
251251
{ Pragma.PreferHlslCC(new[]{ Platform.GLES }) },

0 commit comments

Comments
 (0)