Giter Site home page Giter Site logo

shadervalueio's Introduction

ShaderValueIO

Shader value IO utility (cginc)

Install

OpenUPM

see OpenUPM page

VRChat Creaters Companion (VCC)

  1. Press "Add to VCC" on https://vpm.narazaka.net/ to add Narazaka's repository to VCC.
  2. Make sure that "Narazaka VPM Listing" is enabled in VCC -> Settings -> Packages -> Installed Repositories.
  3. Install "ShaderValueIO" from your project's "Manage Project".

Usage

#define SVIO_NO_TEXTURE
#define SVIO_TEXTURE_TEXELSIZE float4(1.0 / 16, 1.0 / 16, 16, 16)

#define SVIO_COMPONENT_COUNT 4
#define SVIO_DATABITS 8
#define SVIO_DATABLOCK_SIZE 4
#define SVIO_DATABLOCK_X 1
#define SVIO_COMPONENT_COUNT_PER_COMPONENTBLOCK_PIXEL 2
#define SVIO_COMPONENTBLOCK_X 2
#include "Packages/net.narazaka.unity.shadervalueio/ShaderValueIO.cginc"

ShaderValueIO::EncodeFromUint(MyValue(i.uv), i.uv);

License

Zlib License

shadervalueio's People

Contributors

narazaka avatar

Watchers

 avatar  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.