aarthificial / pixelgraphics

A collection of pixel art visual effects
MIT License
353 stars 28 forks source link

The Sprite with the pixel art shader became invinsible (i cant see it any where but the game object was there). #4

Open YenDeveloper opened 3 years ago

YenDeveloper commented 3 years ago

Screenshot (48) >>> this is my trees sprite screen shot

Screenshot (49) >>> this is my secondary texture screen shot

Screenshot (50) >>> this is the screen shot when i use the pixel graphic/folliage/grass_pixel_art_shader

!!Click Here To View The Bug!! >>> this is the video that shows all the bug

please help :)

aarthificial commented 3 years ago

Sorry for the delay. Could you provide a screenshot of your Velocity Camera / Velocity Render Feature setup?

YenDeveloper commented 3 years ago

Sorry for the delay. Could you provide a screenshot of your Velocity Camera / Velocity Render Feature setup?

image image

aarthificial commented 3 years ago

It looks like you're still using the built-in render pipeline. Unfortunately, PixelGraphics was written specifically for scriptable render pipelines (for example URP)

Let me know if that's the case

YenDeveloper commented 3 years ago

It looks like you're still using the built-in render pipeline. Unfortunately, PixelGraphics was written specifically for scriptable render pipelines (for example URP)

Let me know if that's the case

idk I'm using universal render pipeline from the unity it self. is it wrong ?

aarthificial commented 3 years ago

Sorry, my fault. I didn't see a UniversalAdditionalCameraData component on your camera and I thought that you're not using URP. But it's probably somewhere above the other components.

Anyway, stupid question, but did you try to hit play after switching to the grass_pixel_art_shader? I just noticed that sprites are invisible until you hit play for the first time because some global variables need to be set.

YenDeveloper commented 3 years ago

Sorry, my fault. I didn't see a UniversalAdditionalCameraData component on your camera and I thought that you're not using URP. But it's probably somewhere above the other components.

Anyway, stupid question, but did you try to hit play after switching to the grass_pixel_art_shader? I just noticed that sprites are invisible until you hit play for the first time because some global variables need to be set.

yeah I have hit play after switching to grass pixel art shader

Sevpo commented 3 years ago

Possible solution: during the game run check inside Camera component -> Rendering -> Culling Mask -> YourLayerName. Layer could be disabled here during the game. In this case check Velocity Camera -> Layer Mask there is should be "Nothing" option selected