Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Soft8Soft/pyosl

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OSL to GLSL converter

OSL to GLSL converter written in Python.

This library is an open-sourced component of Verge3D toolkit.

Usage

pyosl includes a command line utility called osl2glsl.py. The command

  python osl2glsl your_shader.osl

will print converted GLSL shader to stdout. Use the:

  python osl2glsl your_shader.osl > your_shader.glsl

command to write GLSL shader to the file named your_shader.glsl.

OSL standard library functions

Converter will try to use the built-in GLSL functions where possible. In all other cases it will rename OSL functions as follows:

  • noise -> oslNoise
  • transform -> oslTransform

It's up to you to write implementations of such oslNAME methods.

Support

Got questions/found bugs? Ask on the Verge3D Forums.

License

This tool is licensed under the terms of the MIT license.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.