Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 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 Dickie · Aug 07, 2015 at 12:06 PM · shaderpost processingshaderlabpostpost effects

How would I grab the lighting pass in a post process shader for deferred lighting?

Guess it's all in the title.

I want to run the output of the lighting pass (in deferred rendering) through a look up table, this sounds simple if I can just grab the lighting pass in a post process shader. How would I go about doing that?

I've seen 'Grab pass' wondering if that'll do what I want but I have no idea how to work out the name of the lighting pass to us within that. http://docs.unity3d.com/Manual/SL-GrabPass.html

=== edit: Ok I've found the command buffer, that seems like it'll do what I want, having a little trouble as the command buffer is very poorly documented and no examples given :\

so far I know I want to use 'CameraEvent.AfterLighting' and then render the resulting texture with a shader that uses a look up table... just need to work out how

Comment
Add comment · Show 3
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 _dns_ · Aug 07, 2015 at 02:44 PM 0
Share

Hi, there is an example in one Unity blog in case you didn't find it :) http://blogs.unity3d.com/2015/02/06/extending-unity-5-rendering-pipeline-command-buffers/

avatar image Dickie · Aug 07, 2015 at 02:46 PM 0
Share

yeah I found that and I'm trying to piece it together from that, thanks though

avatar image Dickie · Aug 07, 2015 at 04:02 PM 0
Share

that demo really doesn't explain what's going on. sadly lacking and confusing :(

0 Replies

· Add your reply
  • Sort: 

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Is there any way to apply different textures to a plane on front and back? 1 Answer

Post effect shader similar to "Shannara Chronicles" intro's edge smoke effect 0 Answers

Curved Screen Post Processing Effect 1 Answer

Shader Forge post effect yields a black screen 0 Answers

Pass ShaderLab properties to Standard cginc 2 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