Skip to content

Commit

Permalink
Changed visibility of components in WaveFrontMaterial
Browse files Browse the repository at this point in the history
  • Loading branch information
dosier committed Jul 2, 2024
1 parent b941a3e commit 6c74739
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ sealed class WaveFrontMaterial(private val alpha: Double) {
mtlWriter.println("d $alpha")
}

data class Color(private val r: Double, private val g: Double, private val b: Double, private val alpha: Double) : WaveFrontMaterial(alpha) {
data class Color(val r: Double, val g: Double, val b: Double, val alpha: Double) : WaveFrontMaterial(alpha) {
override fun encodeMtl(mtlWriter: PrintWriter, directory: Path) {
mtlWriter.println("Kd $r $g $b")
tryEncodeAlpha(mtlWriter)
Expand Down Expand Up @@ -66,4 +66,4 @@ sealed class WaveFrontMaterial(private val alpha: Double) {
return bi
}
}
}
}

0 comments on commit 6c74739

Please sign in to comment.