Pardon my format, but I don’t want to waste too much of your time.
I am having alot of difficulty solving this issue.
I am using away3D 4.0.9.
Goals:
—Create a scene with the perelith knight, a floor, and a light. (done)
—All 3 are created in a class file(package) of their own. (done)
—The light class returns a directional light that colors the scene & casts shadows.
Issue:
When I omit the light class & just create the light in the main/default class, everything works fine(both color & shadows). But when I try to use a light returned from my light class, I only get the default white lighting.
Questions:
—What is the correct structure of a custom class that will return a directional light?
—Should the light be created in a function, and then modified with the custom light class…versus creating the light within the custom light class? Why? (Pardon my ignorance)
I am trying to build the app this way because I want to force OOP as far as I can…because the app will be large when completed.
Many thanks for your help!