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
I make the game and to create a player, I use the FirstPersonController class. I also use the shader pixelation_shader. But with shaders there is a problem. I made a room in the game out of rectangular entities, but if I use any shader, the player can see through these walls when he get too close. When I remove the import of this shader, the bug is corrected
The text was updated successfully, but these errors were encountered:
This is due to the near clip plane. Assigning a shader to the camera will set this to 1, since shaders using the depth texture will break otherwise. You can change the near clip plane this by setting camera.clip_plane_near
I make the game and to create a player, I use the FirstPersonController class. I also use the shader
![изображение](https://private-user-images.githubusercontent.com/111056676/334802676-bd65cef6-d4a0-4970-80ce-61abc07a2c9e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3Njg1NDUsIm5iZiI6MTcxOTc2ODI0NSwicGF0aCI6Ii8xMTEwNTY2NzYvMzM0ODAyNjc2LWJkNjVjZWY2LWQ0YTAtNDk3MC04MGNlLTYxYWJjMDdhMmM5ZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjMwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYzMFQxNzI0MDVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hYjRlNzE5N2JhZDBmODg5YWJjMGY2MWFhNmE5ZTc5MjZmZDk4ODNmNTE2Nzc2ZWZkNzgxNDE2ZTNkZWMyOTVjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.jgDf_6L3TLStNE_UAzKCN1YOf5kKAtx4JCHZRaSLGJQ)
pixelation_shader
. But with shaders there is a problem. I made a room in the game out of rectangular entities, but if I use any shader, the player can see through these walls when he get too close. When I remove the import of this shader, the bug is correctedThe text was updated successfully, but these errors were encountered: