treeform / boxy

2D GPU rendering with a tiling atlas.
MIT License
103 stars 8 forks source link

blends.nim(183, 22) type mismatch Expression: proj * vec4(vertexPos.arr[0], vertexPos.arr[1], 0.0, 1.0) #71

Open lwhgames opened 4 weeks ago

lwhgames commented 4 weeks ago

/mnt/c/Users/ROG/.nimble/pkgs2/boxy-0.4.3-d21d0f3c25e93c75495c56e7e4adbb96b1fdb532/boxy/blends.nim(183, 22) Error: type mismatch Expression: proj * vec4(vertexPos.arr[0], vertexPos.arr[1], 0.0, 1.0) [1] proj: Uniform[vmath.Mat4] [2] vec4(vertexPos.arr[0], vertexPos.arr[1], 0.0, 1.0): Vec4

Expected one of (first mismatch at [position]): [1] func *[T](x, y: set[T]): set[T] [1] proc *(x, y: float): float [1] proc *(x, y: float32): float32 [1] proc *(x, y: int): int [1] proc *(x, y: int16): int16 [1] proc *(x, y: int32): int32 [1] proc *(x, y: int64): int64 [1] proc *(x, y: int8): int8 [1] proc *(x, y: uint): uint [1] proc *(x, y: uint16): uint16 [1] proc *(x, y: uint32): uint32 [1] proc *(x, y: uint64): uint64 [1] proc *(x, y: uint8): uint8 [1] proc *[T](a, b: GMat3[T]): GMat3[T] [1] proc *[T](a, b: GMat4[T]): GMat4[T] [1] proc *[T](a: GMat2[T]; b: GVec2[T]): GVec2[T] [1] proc *[T](a: GMat3[T]; b: GVec2[T]): GVec2[T] [1] proc *[T](a: GMat3[T]; b: GVec3[T]): GVec3[T] [1] proc *[T](a: GMat4[T]; b: GVec3[T]): GVec3[T] [1] proc *[T](a: GMat4[T]; b: GVec4[T]): GVec4[T] [1] proc *[T](agensym155, bgensym155: GVec2[T]): GVec2[T] [1] proc *[T](agensym155, bgensym155: GVec3[T]): GVec3[T] [1] proc *[T](agensym155, bgensym155: GVec4[T]): GVec4[T] [1] proc *[T](agensym155: GVec2[T]; bgensym155: T): GVec2[T] [1] proc *[T](agensym155: GVec3[T]; bgensym155: T): GVec3[T] [1] proc *[T](agensym155: GVec4[T]; bgensym155: T): GVec4[T] [2] proc *[T](agensym155: T; bgensym155: GVec2[T]): GVec2[T] [2] proc *[T](agensym155: T; bgensym155: GVec3[T]): GVec3[T] [2] proc *[T](agensym155: T; bgensym155: GVec4[T]): GVec4[T]

Nim Compiler Version 2.0.11 [Linux: amd64] Compiled at 2024-10-27 Copyright (c) 2006-2023 by Andreas Rumpf

git hash: 76d834c1821f77b9f73b581f16895a1d2d1add11 active boot switches: -d:release

xTrayambak commented 2 weeks ago

70 should fix this.