Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
FShade error: SourceVertexIndex not available

I included a shader to calculate per Vertex Normals based on the triangle. After adding it as Effect (toEffect Shaders.mkNormals), I get an error message after startup: "System.Exception: '[FShade] cannot add output "PhaseDistances" to GeometryShader since no SourceVertexIndex was available'"

  let mkNormals (tri : Triangle<Effects.Vertex>) =
    triangle {
      let a = tri.P1.wp.XYZ - tri.P0.wp.XYZ
      let b = tri.P2.wp.XYZ - tri.P0.wp.XYZ
      let n = V3d.Cross(a,b)
      yield {tri.P0 with n = n}
      yield {tri.P1 with n = n}
      yield {tri.P2 with n = n}
  }
  
  
Posted one year ago
Votes Newest

Answers


The Problem was, that our falsecolorshader uses a different type of Vertex (with other Information than Aardvark.Base.Rendering.Effects.Vertex). Therefore information was missing - in this case the SourceVertexIndex. Using the same Vertex type solved the problem.

1
1
Posted one year ago
  
  

Alternatively, add the SourceVertexIndex to your custom Vertex type - mixing and matching vertex types is OK as long as the inputs and outputs fit together

Attila Szabo   one year ago Report
670 Views
1 Answer
one year ago
5 months ago
Tags