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
0
Question by Hoop22 · Apr 01, 2015 at 04:19 PM · javascript

Is there a shader with 3 inputs as texture, light map, and uv?

I am wondering if there is a shader with texture, lightmap and gameObject's uv information as inputs. With this shader, the gameObject can be rendered as baked.

Anyhelp is really appreciated!!!!

Comment
Add comment · Show 1
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 Ericool · Apr 01, 2015 at 05:08 PM 0
Share

for uv not sure of , but you can try Bump$$anonymous$$apping . It should be in the default shaders

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Navigatron · Apr 01, 2015 at 10:35 PM

No, I'm afraid not. Bump-mapped is the shader you are looking for; it uses the texture and UV map.

As for lightmapping, I have had some unfortunate experiences and know more than I should have to. If you have the lightmap already defined from somewhere (How would you do that?) you can assign the lightmap to the lightmap settings using LightmapSettings.lightmaps = LightmapData[]{....}; where the LightmapData array is composed of LightmapData objects, each one consisting of a LightmapData.lightmapFar and a LightmapData.lightmapNear.

I advise against this, because in addition to loading in your custom lightmaps you will have to assign a lightmapIndex to every renderer in the scene, along with each ones custom normalized coords.

I'm pretty sure this next thing is what you want.

At the top of the screen choose Window>Lightmapping. This opens Unity's built-in lightmapper. The Docs have some very good documentation on what each setting does. If you're new, defualts should be fine. In the bottom right, hit "Bake scene". This will render all the shadows from everything in the scene into a lightmap, assign indexes to every mesh, load it all and remember it for you. No scripting needed.

Best of luck

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 Hoop22 · Apr 02, 2015 at 02:12 AM 0
Share

hi, Navigatron. Thanks for your reply. I think I'd better tell more about my project
1) I got the light map of my scene 2) I got the one uv containning every object's uv in the scene 3) I got a texture containing every object's texture, of cause, located as the uv descripted 4) Every object in the scene will use the shader, which can map the lightmap and texture to the object according to the uv. Could you plz give me hand to solve my problem?

avatar image Hoop22 · Apr 02, 2015 at 02:14 AM 0
Share

I also checked the unity shaders, but cant find a shader called bump-mapped shader. It is a shader built in unity?

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Getting raycast to fire at touch position but only when second finger is on screen 0 Answers

Move Object by dragging (mobile) makes the balls fall from the cup 1 Answer

Functions being ignored 2 Answers

Unity3d Update issue 2 Answers

making a trail that destroys enemies 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