[orx-dnk3, orx-runway] Use new loadImage interface

This commit is contained in:
Edwin Jakobs
2024-03-08 20:43:03 +01:00
parent ae3ad13703
commit 00776ae90d
2 changed files with 3 additions and 12 deletions

View File

@@ -9,6 +9,7 @@ import org.openrndr.math.Matrix44
import org.openrndr.math.Quaternion
import org.openrndr.math.Vector3
import org.openrndr.math.transforms.transform
import org.openrndr.utils.buffer.MPPBuffer
import java.io.File
import java.nio.Buffer
import java.nio.ByteOrder
@@ -92,7 +93,8 @@ fun GltfFile.buildSceneNodes(): GltfSceneData {
require(localBufferView.byteLength != null)
localBuffer.position(localBufferView.byteOffset)
localBuffer.limit(localBufferView.byteOffset + localBufferView.byteLength)
val cb = ColorBuffer.fromBuffer(localBuffer, null)
val cb = loadImage(MPPBuffer(localBuffer))
cb.generateMipmaps()
cb.filter(MinifyingFilter.LINEAR_MIPMAP_LINEAR, MagnifyingFilter.LINEAR)
cb.anisotropy = 100.0