Giter Club home page Giter Club logo

lsrd's People

Contributors

pinkwerks avatar

Watchers

 avatar  avatar

lsrd's Issues

SPIR Support for SR1

I didn't pull down the project to see what may be causing issues with SPIR. But, glancing at the shader online I would recommend trying the below suggestions.

// --------------------------------------------------------------------------------

UNITY_VERTEX_INPUT_INSTANCE_ID

This should be UNITY_VERTEX_OUTPUT_STEREO

// --------------------------------------------------------------------------------

UNITY_INITIALIZE_OUTPUT(v2g, o);

This whole block should be:

UNITY_SETUP_INSTANCE_ID(v);
UNITY_INITIALIZE_OUTPUT(v2g, o);
UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o);
UNITY_TRANSFER_INSTANCE_ID(v, o); // You need this because you are using instanced properties.

// --------------------------------------------------------------------------------

UNITY_INITIALIZE_OUTPUT(g2f, o);

Should change to just:

UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o);

Delete this line since you will do this in the vertex shader.:

UNITY_SETUP_INSTANCE_ID(i[0]);

Delete this line, we will move it to where you are creating new vertices:

UNITY_TRANSFER_INSTANCE_ID(i[0], o);

// --------------------------------------------------------------------------------

triStream.Append(o);

Before appending to the tristeam, transfer the index:

UNITY_TRANSFER_VERTEX_OUTPUT_STEREO(i[jdx], o);

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.