Issues with pixelation_shader #269
Replies: 3 comments 6 replies
-
The pixilation shader is a screen-space shader and as such you will need to import it like so: from ursina.shaders.screenspace_shaders import pixelation_shader
camera.shader = pixelation_shader.pixelation_shader |
Beta Was this translation helpful? Give feedback.
-
I just forgot to add it to the list. You should still be able to do from ursina.shaders.screenspace_shaders.pixelation_shader import pixelation_shader though. |
Beta Was this translation helpful? Give feedback.
-
Traceback (most recent call last): |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm making a simple dungeon game, and I'm trying to use pixelation_shader, but whenever I do, it gives me the following error
Traceback (most recent call last):
File "C:\Users-----\OneDrive\Desktop\dungeon game\dungeon_game.py", line 3, in
from ursina.shaders import pixelation_shader
ImportError: cannot import name 'pixelation_shader' from 'ursina.shaders' (C:\Users\18019\AppData\Local\Programs\Python\Python39\lib\site-packages\ursina\shaders_init_.py)
If I use other shaders it works, so I know its not formatting. Does anyone know the issue?
Beta Was this translation helpful? Give feedback.
All reactions