You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove WebGL Unity instructions for patching Emscripten
We have an internal workaround now that doesn't require a patch.
Diffs=
ba00a6765 Remove WebGL Unity instructions for patching Emscripten (#7297)
Co-authored-by: Chris Dalton <[email protected]>
Copy file name to clipboardExpand all lines: WEBGL.md
-38Lines changed: 0 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -13,41 +13,3 @@ This is our best-in-class solution for both quality and performance, supporting
13
13
A fallback that will work on all modern browsers supporting WebGL 2. Anti-aliasing quality and playback performance won't be quite as high as PLS but will still be very good.
14
14
15
15
All Rive features are supported, however performance will be impacted when using advanced blend modes.
16
-
17
-
# ⚠️ Patching Emscripten
18
-
19
-
Rive's shaders use features Unity's WebGL shader pre-processor doesn't handle. We provide a patch that must be applied once to your local Unity install in order for it to bypass the shader preprocessor when loading Rive shaders.
20
-
21
-
## Locate Unity's Emscripten
22
-
23
-
Unity's emscripten installation is based on the location of the installed Unity Engine. For example, on Mac version 2022.3.10f1 will be located here:
The patch may not be compatible with your version of Unity, in this case you can manually make the change.
40
-
41
-
- Find library_c_processor.js in the paths provided above and open it in your code/text editor.
42
-
43
-
- Find where preprocess_c_code is defined: `$preprocess_c_code: function(code, defs = {}) {`
44
-
45
-
- Make it early out if it detects the shader is a Rive shader (it'll include GL_ANGLE_shader_pixel_local_storage) by returning the un-altered shader source:
0 commit comments