Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 SolarLord · Jul 03, 2018 at 11:20 AM · lightingpixel artroguelike

Help with lighting needed

I'm working on a first-person roguelike in pixel art style. The idea was inspired by such projects as Barony and Delver. Now I have some problems with default Unity lighting system. Here's the example:
- Delver Delver lighting
And here's my result/desired result: alt text
Currently I'm using point light. If I assign too large brightness value, I get too bright point at center and dark surrounding. I tried to extend it's radius and screenshot shows what I've got.
How could I get Delver-like lighting effect? It would be cool to get so-called "per texel lighing" as @fusecore intended to achieve here: https://answers.unity.com/questions/932439/how-to-do-per-texel-lighting.html

my2.png (327.5 kB)
sample2.png (242.0 kB)
Comment
Add comment · Show 4
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 TreyH · Jul 03, 2018 at 12:14 PM 0
Share

You can remove that "glossy" look on the standard shader by setting its $$anonymous$$etallic parameter to 0. I was able to get a similar look by setting the material's albedo tint to black and have the lights use a mostly-black version of orange / yellow:

End Result: alt text



Wall $$anonymous$$aterial and Light (ignore the clutter, forum attachment limit): alt text

room.png (338.8 kB)
light.png (151.6 kB)
avatar image SolarLord TreyH · Jul 04, 2018 at 10:57 AM 0
Share

Hm. Interesting, but it doesn't work in my case). If I change albedo to black then this comes out: alt text
EDIT: I used standart shader with $$anonymous$$etallic set to zero.

screenshot-1.png (135.1 kB)
avatar image TreyH SolarLord · Jul 04, 2018 at 01:25 PM 0
Share

Can you link the picture again, or drop it onto Imgur or something? Didn't show up. :-\

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by fusecore · Jul 04, 2018 at 09:30 AM

Hi! So you will definitely need to write your own material shader in order to do this correctly. But perhaps the new Shader graph will help here to make it easier if you're daunted by shader code.

A quick off the top of my head idea would be to add a grab pass to the shader and even out each texel's colour. The problem here I believe could be that the shader needs to know the size of the texels on the 0-1 UV scale and if there's an offset.

A cheap way to get nice results would be to not use the Standard shader, but something like Legacy>Transparent>BumpDiffuse.
alt text

Another idea is to use an indexed colour shader.
Like this: link text

Send me a DM on twitter or mail if you wanna chat! :)


drsndpywsaavf2r.jpg (94.0 kB)
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 SolarLord · Jul 04, 2018 at 12:00 PM 0
Share

Wow! I didn't expect to see you here, but in any case, thanks for your reply ). Shader Graph is something new for me but I will try this solution

avatar image fusecore SolarLord · Jul 04, 2018 at 03:32 PM 0
Share

You tagged me so I got an email! ;) Goodluck!

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

116 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity2D Pixels deforming when moving 0 Answers

How to check if mouse is above or below player? 2 Answers

Making a more blocky lighting shader 0 Answers

Is it possible to create a light like this in unity? 1 Answer

2d normal mapping with pixel game issue 0 Answers


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