Git Product home page Git Product logo

oslscripts's Introduction

These OSL scripts were written with Blender 2.9x. They do not use all features available in OSL, such as the [[ ]] syntax to provide explanatory comments for parameters in shader function signatures.

Older versions of Blender will support fewer features of OSL, such as the select method or the ability to define structs. This means that stylistic conventions are uneven throughout this repository, depending on whether a script has been updated from, e.g, Blender 2.8x to Blender 2.9x.

There may be other discrepancies between this code and the documentation. For example, to define the != operator for a struct, __operator__neq__ is used, not __operator__ne__ .

As of writing, OSL is compatible with Blender's Cycles renderer on a CPU device; not the Eevee renderer. Be sure to enable OSL prior to trying a script. Blender nodes do not distinguish between vector, point and normal data types (except when relevant), so their differences are ignored by this code except where necessary (e.g., matrix transformation).

Online, OSL language support is spotty. Github does not provide syntax highlighting. This code was written in Visual Studio Code with the assistance of James-Ni's OSL Support extension. I have tried to occasionally switch to the language mode to C to format the code, but some code style may still be irregular.

oslscripts's People

Contributors

behreajj avatar

Stargazers

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