public RenderState copyFrom(RenderState state) {
        this.applyBlendMode = state.applyBlendMode;
        this.applyColorWrite = state.applyColorWrite;
        this.applyCullMode = state.applyCullMode;
        this.applyDepthFunc = state.applyDepthFunc;
        this.applyDepthTest = state.applyDepthTest;
        this.applyDepthWrite = state.applyDepthWrite;
        this.applyLineWidth = state.applyLineWidth;
        this.applyPolyOffset = state.applyPolyOffset;
        this.applyStencilTest = state.applyStencilTest;
        this.applyWireFrame = state.applyWireFrame;
        this.backStencilDepthFailOperation = state.backStencilDepthFailOperation;
        this.backStencilDepthPassOperation = state.backStencilDepthPassOperation;
        this.backStencilFunction = state.backStencilFunction;
        this.backStencilMask = state.backStencilMask;
        this.backStencilReference = state.backStencilReference;
        this.backStencilStencilFailOperation = state.backStencilStencilFailOperation;
        this.blendEquation = state.blendEquation;
        this.blendEquationAlpha = state.blendEquationAlpha;
        this.blendMode = state.blendMode;
        this.cachedHashCode = state.cachedHashCode;
        this.colorWrite = state.colorWrite;
        this.cullMode = state.cullMode;
        this.depthFunc = state.depthFunc;
        this.depthTest = state.depthTest;
        this.depthWrite = state.depthWrite;
        this.dfactorAlpha = state.dfactorAlpha;
        this.dfactorRGB = state.dfactorRGB;
        this.frontStencilDepthFailOperation = state.frontStencilDepthFailOperation;
        this.frontStencilDepthPassOperation = state.frontStencilDepthPassOperation;
        this.frontStencilFunction = state.frontStencilFunction;
        this.frontStencilMask = state.frontStencilMask;
        this.frontStencilReference = state.frontStencilReference;
        this.frontStencilStencilFailOperation = state.frontStencilStencilFailOperation;
        this.lineWidth = state.lineWidth;
        this.offsetEnabled = state.offsetEnabled;
        this.offsetFactor = state.offsetFactor;
        this.offsetUnits = state.offsetUnits;
        this.sfactorAlpha = state.sfactorAlpha;
        this.sfactorRGB = state.sfactorRGB;
        this.stencilTest = state.stencilTest;
        this.wireframe = state.wireframe;
        return this;
    }
Copy all values from the given state to this state.
<p>
This method is more precise than {@link #set(com.jme3.material.RenderState)}.
@param state state to copy from
jme3-core/src/main/java/com/jme3/material/RenderState.java