glsl-shader-name

WebJar for glsl-shader-name

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

glsl-shader-name
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

glsl-shader-name
WebJar for glsl-shader-name
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/glslify/glsl-shader-name

Download glsl-shader-name

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/glsl-shader-name/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>glsl-shader-name</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/glsl-shader-name/
implementation 'org.webjars.npm:glsl-shader-name:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/glsl-shader-name/
implementation ("org.webjars.npm:glsl-shader-name:1.0.0")
'org.webjars.npm:glsl-shader-name:jar:1.0.0'
<dependency org="org.webjars.npm" name="glsl-shader-name" rev="1.0.0">
  <artifact name="glsl-shader-name" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='glsl-shader-name', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "glsl-shader-name" % "1.0.0"
[org.webjars.npm/glsl-shader-name "1.0.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : atob-lite jar [1.0.0,2)
org.webjars.npm : glsl-tokenizer jar [2.0.2,3)

Project Modules

There are no modules declared in this project.

glsl-shader-name

stable

Extract a shader's name from its source, as specified in @spite's ShaderEditorExtension.

// in plaintext:
#define SHADER_NAME hello world

// or for non-ASCII characters using base64:
#define SHADER_NAME_B64 aGVsbG8gd29ybGQ=

This is a simple pattern for identifying otherwise anonymous shaders in GLSL tooling.

Usage

NPM

name = shaderName(src)

Retrieves the shader name from a GLSL source string src. You may also pass in a list of tokens generated by glsl-tokenizer.

Contributing

See stackgl/contributing for details.

License

MIT. See LICENSE.md for details.

org.webjars.npm

Versions

Version
1.0.0