Code Monkey home page Code Monkey logo

heat_distortion_refraction's Introduction

Heat_Distortion_Refraction

基于URP管线,热空气扭曲。支持半透明物体。

在Unity的Build-in渲染管线下可以在合适的时机使用GrabPass截图,但是在URP管线下没有GrabPass了,想要获取截图只有_CameraColorTexture和_CameraOpaqueTexture。

  1. _CameraOpaqueTexture是在不透明通道渲染后截图,所以截不到半透明的物体。

  2. _CameraColorTexture是在半透明通道渲染后和PostProcessing后截图。

所以在PostProcessing渲染通道渲染完成后会有一个_AfterPostProcessTexture的屏幕截图,这个就是正确的屏幕截图了,这时候使用这个截图就可以做出正确的扭曲效果。

效果测试: https://user-images.githubusercontent.com/7518595/123969522-e3104100-d9ea-11eb-8941-f52efbba298f.mp4

heat_distortion_refraction's People

Contributors

haili1234 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.