Coder Social home page Coder Social logo

ironwarrior / unitygrassgeometryshader Goto Github PK

View Code? Open in Web Editor NEW
814.0 814.0 123.0 9.11 MB

Source code for Grass Shader tutorial for Unity. Generates blades with a geometry shader, tessellates input mesh to control density.

Home Page: https://roystan.net/articles/grass-shader

License: The Unlicense

ShaderLab 83.65% HLSL 16.35%

unitygrassgeometryshader's People

Contributors

ironwarrior avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

unitygrassgeometryshader's Issues

Problem on Mac

Hi there i have problem when open project on my Mac:
Shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
Screen Shot 2019-04-13 at 12 52 32
Is it my laptop problem or shader bug ?
Thank you

Shader Error

I tried importing the project into Unity to give it a try and I'm getting an error on import of the shader. It says "invalid subscript 'normal'" with what I assume is the line of "d3d11 212" to the right of it.

Grass amount does not decrease by size of face

afbeelding

Hiya, as you can see in this image, the density of grass is not affected by the size of the face, which makes certain faces seem much more dense than others, is there some way to fix this?

Thanks!

Mesh renderer Error

I tried this project in Unity with Android and iOS platform. It turns out that the mesh renderer didn't work correctly. when inspecting grass shader, it is shown that shader is not supported on this GPU( none of subshaders/fallbacks are suitbale).

Universal Render Pipeline (2019.3.0f3) and pink render errors :(

Hello, I want to use your shader in my project,because is very cool! I will try make another one by myself using your guide, but now I need really hard and just use your project. Problem is that your material with your shader is turns to pink color without any error, I found that maybe main thing that works wrong is line with "LightMode" = "ForwardBase"? Only colors and rendering dont work, but blades of grass still works very well, because i saw them in wireframe mode. Shader works if //comment line with lightmode and in fragment shader comment all except line
return col with some value. What I can do to make shader works like in 2018 version of unity?) Thank you very much! for your work!

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.