dilevin / computer-graphics-shader-pipeline

Computer Graphics Assignment about the Shader Pipeline
2 stars 5 forks source link

How to show moon in front earth? #56

Closed jarenworme closed 11 months ago

jarenworme commented 11 months ago

my moon is hidden behind the earth. How do I get it to orbit?

https://github.com/dilevin/computer-graphics-shader-pipeline/assets/90414176/46e78a5d-535f-48c3-a9a3-0129a56a44ab

RudainaK commented 11 months ago

it looks like your moon is rotating behind the earth (and seems to go inside it), so something is likely with your rotation or translation

wenzhi-guo commented 11 months ago

yes, I agree with the above comment. Double check with your transformation matrix and projection code.

jarenworme commented 11 months ago

Thanks, it was because the earth object was not receiving the functions in model