This repository was archived by the owner on Nov 30, 2020. It is now read-only.
Commit b163712
authored
Resolve warning in MotionBlur shader
When I compiled the shaders the MotionBlur shader issued the following warning:
```
'Hidden/Post FX/Motion Blur': variable 'o' used without having been completely initialized at Assets/PostProcessing/Resources/Shaders/MotionBlur.cginc(391) (on d3d9)
```
After reviewing this I discovered that the uvSPR member of the instantiated VaryingsDefault
struct was not initialized; causing this error to occur. By initializing this member to 0 it provides
a valid initial value and as such will resolve the aforementioned warning.1 parent 8afc17a commit b163712
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
| 386 | + | |
386 | 387 | | |
387 | 388 | | |
388 | 389 | | |
| |||
0 commit comments