Comments (4)
Hi, you can try to add this to the shader...
_MainTex("Main Texture", 2D) = "SimpleURPToonLitExample(With Outline)" {}
I have similar issues on another shaders, but this is a hotfix, lol.
from unityurptoonlitshaderexample.
I tried but it seems not working...
Do you mean adding the line in properties
section of SimpleURPToonLitOutlineExample.shader
file?
I tried to add there, plus adding/removing the code for _BaseMap
, but still the texture does not render.
Can I ask if your fix is trying to "add a new texture to the shader" or "replace the texture of the _BaseMap texture"?
from unityurptoonlitshaderexample.
I just added this to Properties, but this helps in another shader, not in this.
Important: the name must be the same as the Shader's name (first line of code).
_MainTex("Main Texture", 2D) = "** SHADER NAME **" {}
If this not works, so... I don't know, sorry.
from unityurptoonlitshaderexample.
OK, so after some testing and poking around, I found that the problem is I used the wrong pipeline...
Make sure you choose "Universal Render Pipeline" when creating a project:
I have chosen "3d", but it does not render correctly even after I imported URP in packet manager (not sure why, so you may need to search on swapping pipeline if you are upgrading it).
For those tries to use this with Unity Chan (For Absolute Beginners like me):
- Open new project with URP selected
- Install Unity chan and this project
- go to
/Assets/unity-chan!/Unity-chan! Model/Art/Models
and put the model to scene - go to
/Assets/unity-chan!/Unity-chan! Model/Art/Materials
, the preview should be all wrong; this indicate that the pipeline of original Unity-Chan is using a different rendering pipeline - for each of the material, change its shader to the one in this project
In the end something like this should be seen:
It does not look good but at least it renders. From here I can try to poke around with the project code. Thanks!
TL;DR: Purple is wrong pipeline, Are you sure you are using URP?
from unityurptoonlitshaderexample.
Related Issues (17)
- compilation error on iOS build HOT 5
- Objects disappear if Depth Priming is not set to "Disabled" HOT 3
- wow HOT 4
- No answer HOT 2
- Bright Pink HOT 1
- Getting some "Couldn't open include file..." errors With 2021.3.33 HOT 1
- Is that true?
- Cull Front issue HOT 1
- Imported tutorial shader not working correctly on lighting.
- Where/How can i find the albedo (basemap) for the shader?
- Need "Enable GPU Instancing" working.. HOT 1
- how do you change the outline so it doesn't change with object scale? HOT 2
- shader编译错误 HOT 3
- GPU instancing HOT 2
- Shader error HOT 4
- Anti-Aliasing causes emulator/PC-Quality Demo to run at 1 FPS HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unityurptoonlitshaderexample.