Описание
---
---
Velvet is a multiloader library for making and using your own OpenGL shaders based off of Satin. I highly suggest supporting the Satin developers, but don't pester them with bug reports if you're using Velvet.
For documentation, [Satin's wiki]([https://github.com/Ladysnake/Satin/wiki](https://github.com/Ladysnake/Satin/wiki)) will provide you with everything. Some class and method names are different, as Velvet renames them to match Mojmap names.
---
### Adding Velvet to your project
If your project is Fabric only, please use [Satin](https://github.com/Ladysnake/Satin) instead.
You can add Velvet by putting the following in your `build.gradle`:
```gradle
repositories {
maven {
name = "Up-Mods & Cammie's Corner"
url = "https://maven.uuid.gg/releases"
}
}
```
For Fabric (Ignore this if you're only using NeoForge):
```gradle
dependencies {
modImplementation "dev.cammiescorner.velvet:Velvet-Common:${velvet_version}"
modImplementation "dev.cammiescorner.velvet:Velvet-Fabric:${velvet_version}"
// If you want to jar-in-jar Velvet
include "dev.cammiescorner.velvet:Velvet-Common:${velvet_version}"
include "dev.cammiescorner.velvet:Velvet-Fabric:${velvet_version}"
}
```
For NeoForge:
```gradle
dependencies {
implementation "dev.cammiescorner.velvet:Velvet-Common:${velvet_version}"
implementation "dev.cammiescorner.velvet:Velvet-NeoForge:${velvet_version}"
// If you want to jar-in-jar Velvet
jarJar(dev.cammiescorner.velvet:Velvet-Common:${velvet_version}) {
transitive = false
version {
strictly "[${velvet_version},)"
prefer ${velvet_version}
}
}
jarJar(dev.cammiescorner.velvet:Velvet-NeoForge:${velvet_version}) {
transitive = false
version {
strictly "[${velvet_version},)"
prefer ${velvet_version}
}
}
}
```
Then add the library version to your `gradle.properties` file:
```properties
# Velvet version
velvet_version=0.x.x
```
Or your `libs.versions.toml` file if you're using one of those instead:
```toml
# Velvet version
velvet_version = "0.x.x"
```
For the latest version of Velvet, please check the [GitHub Releases](https://github.com/CammiePone/Velvet/releases).
---