ChaosModV icon indicating copy to clipboard operation
ChaosModV copied to clipboard

[Effect Suggestion] The Earth Is Round

Open AntonioNoack opened this issue 2 years ago • 1 comments

Name of effect

  • The Earth Is Round
  • Anti-Flat-Earther

Duration (choose one and replace the corresponding "[ ]" with "[X]")

  • [X] Long
  • [ ] Short
  • [ ] No duration

(medium maybe?)

Effect Description It uses vertex shaders (or whatever they are called in GTA) to offset the position downwards, the further you get from the camera, x² (as an approximation for a sphere, going from the very top)

so if y=down; delta = cameraPosition - vertexPosition, position.y -= factor * dot(delta,delta)

I have shader programming experience, but I have no experience with GTA modding, so I probably couldn't implement it myself

AntonioNoack avatar Aug 09 '22 16:08 AntonioNoack

You don't need to do much non-shader stuff for a shader effect.

You could just copy-paste code of one of the existing simpler shader effects and change the hlsl source and effect info

ljbajic avatar Aug 09 '22 16:08 ljbajic