[orx-noise] Bring back GLSL NoiseFilters.kt (#277)
This commit is contained in:
@@ -4,6 +4,14 @@ plugins {
|
||||
org.openrndr.extra.convention.`kotlin-multiplatform`
|
||||
}
|
||||
|
||||
val embedShaders = tasks.register<EmbedShadersTask>("embedShaders") {
|
||||
inputDir.set(file("$projectDir/src/shaders/glsl"))
|
||||
outputDir.set(file("$buildDir/generated/shaderKotlin"))
|
||||
defaultPackage.set("org.openrndr.extra.noise.filters")
|
||||
defaultVisibility.set("internal")
|
||||
namePrefix.set("noise_")
|
||||
}.get()
|
||||
|
||||
kotlin {
|
||||
jvm {
|
||||
@Suppress("UNUSED_VARIABLE")
|
||||
@@ -22,6 +30,10 @@ kotlin {
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val shaderKotlin by creating {
|
||||
this.kotlin.srcDir(embedShaders.outputDir)
|
||||
}
|
||||
|
||||
@Suppress("UNUSED_VARIABLE")
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
@@ -29,7 +41,11 @@ kotlin {
|
||||
implementation(libs.openrndr.shape)
|
||||
implementation(libs.openrndr.draw)
|
||||
implementation(project(":orx-hash-grid"))
|
||||
implementation(project(":orx-parameters"))
|
||||
implementation(project(":orx-shader-phrases"))
|
||||
api(shaderKotlin.kotlin)
|
||||
}
|
||||
dependsOn(shaderKotlin)
|
||||
}
|
||||
|
||||
|
||||
@@ -46,6 +62,8 @@ kotlin {
|
||||
val jvmDemo by getting {
|
||||
dependencies {
|
||||
implementation(project(":orx-hash-grid"))
|
||||
implementation(project(":orx-noise"))
|
||||
implementation(project(":orx-jvm:orx-gui"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user