Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
3
Question by ROM · Jul 30, 2010 at 10:59 PM · iphonecolorblocking

Is "Block color" possible in unity?

Basically I have a series of Cinema 4D models which are different colors but each model is only one color, a kind of "pop art" style I suppose. The problem is when I import them into unity it adds shading to the model. Is there any way that I can turn this "shading" off?

For an idea of the kind of effect I am looking for I have included the below image: alt text

Thanks in advance!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
4
Best Answer

Answer by qJake · Jul 30, 2010 at 11:55 PM

You need an Unlit shader. Here, try this one I use quite often, that I found on the Unity forums:

Shader "Unlit Diffuse Alpha" { Properties { _Color ("Color Tint", Color) = (1,1,1,1) _MainTex ("Base (RGB) Alpha (A)", 2D) = "white" {} _Cutoff ("Alpha cutoff", Range(0,1)) = 0.5 }

SubShader { Cull Off Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="TransparentCutoff"} Pass { Alphatest Greater [_Cutoff] AlphaToMask True ColorMask RGB

   SetTexture [_MainTex] { 
      Combine texture, texture 
   } 

} }

}

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Jessy · Aug 21, 2010 at 02:58 PM 0
Share

Eric's is a better match. Also, "Unlit" and "Diffuse" don't make any sense together.

avatar image qJake · Aug 21, 2010 at 07:16 PM 0
Share

I didn't come up with the name, or the shader.

avatar image
6

Answer by Eric5h5 · Jul 31, 2010 at 12:43 AM

If you don't need alpha or textures, use this:

Shader "Solid Color" {
    Properties {
        _Color ("Main Color", Color) = (1,1,1,1)
    }
    SubShader {
        Pass { Color [_Color] }
    }
}
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Changing two different objects renderer colour 1 Answer

RE: rend.material too hard to handle for iOS? 1 Answer

Can anybody help me? My iOS game have a poor contrast in the iphone, in the mac colors are more vivid, more colorful 0 Answers

How can I change the color of an object's material, not generate another instance of the material, and still keep batching? 2 Answers

iPhone 3G Vertex Color and Lighting 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges