I want to use object position to randomize a UV value to pick a color from a swatch texture. My shader looks as expected in editor, but in the game window it appears black. The only way I've managed to get it to appear correct is by changing the camera rendering path to Legacy Deferred (light prepass). Any ideas what might be causing this?
[SOLVED] using Transform Position, object black in game
-
kyleyoungblom
- Posts: 6
- Joined: Fri Nov 02, 2018 3:10 am
[SOLVED] using Transform Position, object black in game
Last edited by kyleyoungblom on Mon Mar 11, 2019 5:36 pm, edited 1 time in total.
- Amplify_Borba
- Posts: 1239
- Joined: Mon Jul 24, 2017 9:50 am
Re: using Transform Position, object appears black in game
Hello, the node setup that you've shared seems to be working correctly on my side, I've tested with the shader's Render Path set to All, and the Camera's Rendering Path set to Forward, Deferred and Legacy Deferred.
I did notice that you are using the shader mode in the ASE canvas, please ensure that you double click on the material using that shader to edit it in material mode, so that any changes made to it will automatically affect all materials using it.
If possible, please share a simple sample with the issue present for us to debug, thanks!
I did notice that you are using the shader mode in the ASE canvas, please ensure that you double click on the material using that shader to edit it in material mode, so that any changes made to it will automatically affect all materials using it.
If possible, please share a simple sample with the issue present for us to debug, thanks!
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
-
kyleyoungblom
- Posts: 6
- Joined: Fri Nov 02, 2018 3:10 am
Re: using Transform Position, object appears black in game
Hello, thanks for your reply. I exported my shader+material into a new project, and it shows up properly, so I imagine it's something to do with the project settings? I tried copying over the new GraphicsSettings and QualitySettings assets to my old project, but I'm still seeing the same issue.
- Amplify_Borba
- Posts: 1239
- Joined: Mon Jul 24, 2017 9:50 am
Re: using Transform Position, object appears black in game
Does the issue persist if you create a new scene?
Are there any warnings or errors in the console?
If there were any errors in the console at the time you imported ASE into your project, its possible that certain files might've failed to import properly, if this is the case please try to deal with any errors before re-importing ASE.
Are there any warnings or errors in the console?
If there were any errors in the console at the time you imported ASE into your project, its possible that certain files might've failed to import properly, if this is the case please try to deal with any errors before re-importing ASE.
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
-
kyleyoungblom
- Posts: 6
- Joined: Fri Nov 02, 2018 3:10 am
Re: using Transform Position, object appears black in game
Figured it out! It was kind of obvious in retrospect; I needed to disable batching.